Saturday, 10 December 2016

How to Check the lock status of any Linux Account



Now one single command to see the lock status of the user:


[root@linuxcnf ~]# passwd - S user1
user1 LK 2016-12-10 0 99999 7 -1 (Password locked.)

If the user account is unlocked you will output like below:

[root@linuxcnf ~]# passwd - S user1
user1 PS 2016-12-10 0 99999 7 -1 (Password set, SHA512 crypt.)

No comments:

Post a comment