Some times the administrator can lock or unlock the user password means , the user cannot change the password if administrator set the lock option. the syntax is passwd -l / -u username
l – lock the password (user cannot change their password)
u – unlock the password (user can change their password)
passwd -l / -u username
l – lock the password (user cannot change their password)
u – unlock the password (user can change their password)
Eg :
[root@MB327SCS068 ~]# passwd -l antony
Locking password for user antony.
passwd: Success
[root@MB327SCS068 ~]# passwd -u antony
Unlocking password for user antony.
passwd: Success.
No comments:
Post a Comment