How do I check if a Linux account is locked?

How do I check if a Linux account is locked?
Answer
Run the passwd command with the -l switch, to lock the given user account. You can check the locked account status either by using passwd command or filter the given user name from ‘/etc/shadow’ file. Checking the user account locked status using passwd command.
 

Tìm kiếm

Back
Top