This blog is all about changing the root password of the Linux system when it is forgotten or to reset the password...
Let's get it started...
1. Shutdown the sytem
2. Start the system
3. When you see the GRUB Menu press the 'e' key before the operating system boots...
4. In the GRUB boot options...
4.1. scroll down and locate the line that begins with ‘linux’
4.2. In this line move the cursor to the end of the line after "ro quiet"
4.3 Append the parameter init=/bin/bash
5. Press Ctrl+ x or F10 to boot
6. Now you would see the root prompt
7. In the command line type the following command
mount -n -o remount,rw /
the above command would mount the system in ReadWrite mode against the default mode i.e Read
8. Now you can change the password for any user by using the following command...
:# passwd <username>
9. Press Ctrl + D or Ctrl + Alt + Del to exit
Now the new password which is set for the appropriate user should work now....
No comments:
Post a Comment