Try adding to /mnt/hda6/etc/sudoers this: your_username ALL=NOPASSWD: ALL
Then boot suse and do as user: sudo passwd
I lost the root password on a SuSE 9.3 system. The failsafe mode
was also password protected. I tried to use Knoppix 3.7 to reset
and unset the passwords.....it has not worked.
I booted Knoppix 3.7, and attempted the procedure in the
"Knoppix Hacks" book, #66. A problem (I think) is that the /etc files
are on partition /dev/hda6 (passwd and shadow files), while the
system executable that changes the password is on /dev/hda7.
So I mounted both mount -o rw ..../ same for hda7,
then tried
sudo chroot /mnt/hda6 passwd It could not find the file.
also I tried a hard path to the passwd binary, and that still
did not work. The program to change the passwd would never
execute.
So then I tried the following, with /mnt/hda6 mounted rw,
where passwd and shadow are located.....
I edited those files, and replaced the characters between the
first set of colons with ::
This should have resulted in no root password for the system
upon reboot.
Not the case.
When I reboot, and login as a regular user, and then issue the
su command, the password prompt never shows, but in a few
seconds the message "incorrect password" is shown....so the
password can never be entered. Single user mode and failsafe
provide the same behavior.
Help please!
Try adding to /mnt/hda6/etc/sudoers this: your_username ALL=NOPASSWD: ALL
Then boot suse and do as user: sudo passwd
I would mount the root / & then mount the /etc in the /.
Assuming /dev/hda7 is your root and /dev/hda6 is /etc.
Boot knoppix.
become root user in knoppix.
su -
Then mount the /root, but first create a mount point.
mkdir /mnt/suse-root
mount -t reiserfs /dev/hda7 /mnt/suse-root
mount -t reiserfs /dev/hda6 /mnt/suse-root/etc
Then chroot into that environment
chroot /mnt/suse-root /bin/bash
Then change the password.
passwd
Then exit
exit
Then unmount the partitions
umount /mnt/suse-root/etc /mnt/suse-root
Then reboot
init 6
The above steps have always worked for me.
SanDisk 1TB Ultra Dual Drive Go USB Type-C Flash Drive, Black - SDDDC3-1T00-G46
$109.99
SanDisk 128GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46
$10.99
SanDisk 256GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-256G-A46
$21.99
SanDisk 128GB Ultra Flair USB 3.0 Flash Drive - SDCZ73-128G-G46
$12.99
Lenovo USB 16TB 3.0 USB Flash Drive Thumb Disk Silver Transfer Metal Memory
$24.99
Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack
$4.99
2TB USB 3.0 Flash Drive Memory Photo Stick for iPhone Android iPad Type C 3 IN1
$13.98
USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$5.99
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$388.39
USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT
$259.34