Change the Password in UNIX Command

www.la‮oc.iruttu‬m
Change the Password in UNIX Command

To change the password for a user account in a Unix or Linux system, you can use the passwd command. This command is used to change the password for a user account.

To change a user's password, you will need to have root privileges or be logged in as the user whose password you want to change.

To change a user's password, follow these steps:

  1. Open a terminal.
  2. Enter the passwd command followed by the username of the user whose password you want to change. For example:
sudo passwd username
  1. Enter the current password for the user when prompted.

  2. Enter the new password for the user twice when prompted.

The password will be changed for the specified user.

Note that the passwd command can also be used to change the password for the current user. To do this, simply enter passwd without specifying a username.

Created Time:2017-10-16 14:38:41  Author:lautturi