passwd command examples


– passwd is default tool to change and set parameters for the passwords.

Examples: 
– To lock the user account
                # passwd -l santosh 

  
– To unlock the user account
                # passwd -u santosh 

  
– To delete the password for the user account
                # passwd -d santosh 

  
– To expire the password for the user account
                # passwd -e santosh 

  
 – To set the min / max password life
                # passwd -n 10 santosh
                # passwd -x 100 santosh 

  
– To set warning message time
                # passwd -w 2 santosh 

  
– To set the user account inactivity time
                # passwd -i 20 santosh 

  
– To get the short info about user account passwd
                # passwd -S santosh 

Leave a Reply

Your email address will not be published. Required fields are marked *