-
resetting root password on a SuSE 9.3 system
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
-
Senior Member
registered user
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.
Similar Threads
-
By oganika in forum Customising & Remastering
Replies: 6
Last Post: 11-26-2006, 07:12 PM
-
By askme in forum General Support
Replies: 5
Last Post: 06-20-2006, 06:44 AM
-
By luagh45 in forum General Support
Replies: 1
Last Post: 10-27-2005, 11:06 PM
-
By CyberShadow in forum General Support
Replies: 1
Last Post: 04-05-2004, 06:49 AM
-
By freyley in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 01-31-2003, 09:21 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w
$174.95

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3
$219.99

Microsoft Windows Server 2022 Standard 64-bit License & DVD 16 Core US Shipping
$34.99

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays
$349.99

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays
$259.99

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w
$359.99

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99
![WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER RDS CAL SEALED picture](/store/img/g/Fn8AAOSwCcpn9N3z/s-l225/WINDOWS-SERVER-2025-REMOTE-DESKTOP-SERVICES-50-USE.jpg)
WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER RDS CAL SEALED
$119.18

Supermicro 721-2 Mini Tower Black Computer Server NO Hdd
$375.00