How Do I Change My Password on Linux?
Contents

Which Linux command do you enter to change your system password?

passwd command in Linux is used to change the user account passwords. The root user reserves the privilege to change the password for any user on the system, while a normal user can only change the account password for his or her own account.

How do I change my password in terminal?

How to change a user password in Ubuntu

  1. Open the terminal application by pressing Ctrl + Alt + T.
  2. To change a password for user named tom in Ubuntu, type: sudo passwd tom.
  3. To change a password for root user on Ubuntu Linux, run: sudo passwd root.
  4. And to change your own password for Ubuntu, execute: passwd.
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