how to change ubuntu root password

January 1, 2009 | By voidzzz | Filed in: How-To, Linux.

some of you might still asking how can we change root password on ubuntu linux installation. well here’s the easiest step to do that.

  1. Launch your konsole / terminal
  2. execute the following command and then press enter:
    sudo su
  3. insert your current user password and press enter
  4. once you got into root shell (# prompt mark instead of $) execute the following command and press enter :
    passwd root
  5. insert your new password (twice)

That’s it … you’ve already change your ubuntu root password. Next time you execute sudo / su use your new password when asked.


One comment on “how to change ubuntu root password

  1. noah says:

    I hate to tell you this, but on Ubuntu, there is a group of administrators that log into root, and when they do they type in their own password, in other words: this won’t work on Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *