Question Locked

How to reset root password in SuSe Linux 9.0

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
help

8 replies

by davetib

I just had to reset the Root password for a machine running RHEL 4.
I'd rather not post the steps here, as it is a bit of a security hole.
If I can contact you directly, I'll send you the steps I used.
Dave

by merlin the wiz

I just fixed this problem with openSUSE 12.1. Nothing in the above solutions worked. I could not find my original downloaded CD, so I downloaded and burned a new CD. I then ran the CD and Created NEW passwords, and did NOT allow the CD to format either the primary partition OR the User/Data partition. When the installation finished, I then ran the check for updates utility . The program updated and everything works fine., including the Firefox Add-ons I had previously installed.

by hextwo

for Fedora and RedHat. Maybe it will work for SUSE.
I don't remember where I got this though so I can't give credit...

How to Reset the Root Password

For systems using GRUB:
1. Restart the computer and enter GRUB menu. This is done by pressing ESC or
Left-Shift or Right-Shift.
2. If an entry exists called "recovery mode" or "single user mode" select and
boot that entry. Else, use the following steps to enter single user mode:
1. Use arrows to select boot entry to modify.
2. Press "e" to edit.
3. Use arrows to select "kernel" line.
4. Press "e" to edit.
5. At end of line add the word "single" with no quotes.
6. Press ESC to go back.
7. Press "b" to boot.
3. At prompt type following commands:

# passwd
...
# sync
# reboot

For systems using LILO:
1. At LILO boot prompt type "linux single" with no quotes.
2. At prompt enter following commands:

# passwd
...
# sync
# reboot

If you are asked for root password when entering single user mode use
"init=/bin/bash" on the kernel append line which should boot the machine into
a bash console where you can get read/write access to your /etc/shadow file.
You can then either run "passwd" or edit the shadow file directly to put in
an empty string. This allows you to reboot the machine into its normal
environment and login as root leaving the password blank and then run "passwd"
to set the root password. This should be done when the machine is not
connected to the network.

This discussion is closed to new replies.