- Reboot your machine
- Press 'Esc' key once grub starts loading
- Select your kernel press 'e' on one of the kernel to edit the kernel parameter
- Press 'e' on the line that starts with 'kernel /vmlinuz...'
- Append ''single" or "1" at the end of the line
- Press 'Enter'
- Press 'b' to boot from the appended kernel
- You are now in the single user mode of your linux machine once you get to the shell. You can now change the password of your account using command passwd
- Reboot back your machine normally
- You can now log in to your machine using your new password
Tuesday, October 26, 2010
CentOS/Fedora forgotten password
What to do if you forgot the password for your CentOS/Fedora/Redhat machine?? Here are some simple steps to change back the password by entering into single user mode of your machine provided you do not forgotten your grub password if you have set it ;)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment