Friday 10 February 2012

Changing root password in Linux

Many a times we want to login as root but we don't remember the password (root account is disabled by default in Ubuntu).
Here is how you can change the root password in 2 simple steps:


1. Open the terminal (shortcut Ctrl+Alt+T).



2. Type the command: sudo passwd root.



3. Enter the user password and you will be prompted to input the new password for the root.



4. Enter the password you desire, confirm the password.


5. If both the passwords match, you are done.




2 comments:

  1. what if, you (the user) isnt in the sudoers' list.?

    ReplyDelete
    Replies
    1. In that can refer to the following post to change the password:

      http://ishan-thecholeric.blogspot.in/2012/02/recover-lost-password-linux.html

      Delete