8 replies
by swapnil147 Accepted solution
by older mycroft Accepted solution
by davetib Accepted solution
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 bmohan_23 Accepted solution
by ssaidwho Accepted solution
type init=/bin/bash as a grub boot loader option. i had to have ps2 keyboard (usb didn't work). found this answer posted here:
http://www.linuxquestions.org/questions/linux-software-2/forgot-password-suse-linux-10-434891/
by ssaidwho Accepted solution
the filesystem mount needs to be changed so your change will take effect:
mount -o remount,rw /
http://www.linuxforums.org/forum/suse-linux-help/84401-changing-access-right-file-system.html
by merlin the wiz Accepted solution
by hextwo Accepted solution
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.
Trending Linux posts
Sort by Trending