Sunday, August 2, 2015

Password change and locking/unlocking user accounts in Unix system

*** To change your own password, enter:
   $ passwd

To change other users password, you must login as root:
   $ passwd userName
   $ passwd vivek


To lock user account, enter (must be root user to type the following):
   $ passwd -l username

To unlock the account password, enter:
   $ passwd -u username

No comments:

Post a Comment