How to change the root password in Linux systems

How to change the root password in Linux systems

If you want to create a new root password then try to login through single-user mode.

  • To get enter into your single user mode first reboot your system. If you are using GRAB as default boot loader then use details given below.
  • First highlight the installation which you want to edit in your boot loader menu, then type [A] to get enter into your append mode.
  • Now you enter into a prompt with the similar code given below.
Grub append> ro root=LABEL=/
  • After that click space bar key to add blank space and then add the word “single”.You have to do this to tell “GRUB” about "boot single-user Linux mode". After that, you found following details given below.
ro root=LABEL=/ single
  • After that click enter button and “GRUB” will automatically boot the single-user Linux mode.when you completed this step then you get following code
Sh-2.05b#
  • Now you can change the password by typing
Root password.
It will ask you to reset the password for verification. once you do that your password will be automatically changed. then reboot the computer and try to log in again.
Author
bhawanisingh
Views
1,556
First release
Last update
Rating
0.00 star(s) 0 ratings
Top