Easy Tutorial
❮ Linux Comm Mmount Linux Comm Setenv ❯

Linux passwd Command

Linux Command Manual

The Linux passwd command is used to change a user's password.

Syntax

passwd [-k] [-l] [-u [-f]] [-d] [-S] [username]

Required Parameters:

Optional Parameters:

Examples

Change user password

# passwd tutorialpro  //Set the password for the tutorialpro user
Enter new UNIX password:  //Enter the new password, no echo
Retype new UNIX password:  //Confirm the password
passwd: password updated successfully
#

Display account password information

# passwd -S tutorialpro
tutorialpro P 05/13/2010 0 99999 7 -1

Delete user password

# passwd -d lx138 
passwd: password expiry information changed.

Linux Command Manual

❮ Linux Comm Mmount Linux Comm Setenv ❯