Question: How Do I Change a User Password in Linux?
Contents

How do I change a password in Linux?

Both Linux and UNIX-like operating systems use the passwd command to change user password.
…
To change a password on behalf of a user:

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

What is the command to change the password of a user?

Description. The passwd command sets and changes passwords for users. Use this command to change your own password or another user’s password. You can also use the passwd command to change the full name (gecos) associated with your login name and the shell you use as an interface to the operating system.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest