How Do I Change the Root Password in Linux?
Contents

What is the password for root in Linux?

Short answer – none. The root account is locked in Ubuntu Linux. There is no Ubuntu Linux root password set by default and you don’t need one.

How do I change my password on Linux?

Changing user passwords on Linux

To change a password on behalf of a user: First sign on or “su” or “sudo” to the “root” account on Linux, run: sudo -i. Then type, passwd tom to change a password for tom user. The system will prompt you to enter a password twice.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest