How can I tell if a Linux account is disabled?

Kim Thu Đoàn

New member
How can I tell if a Linux account is disabled?
Answer
For each of the methods described above, you can verify if the user account is locked/disabled using below methods.
  1. Check if the user account is locked. Check for the flag *LK* in the below command output which indicates that the account is locked. …
  2. Check if the account has an expire date. …
  3. Check for non-interactive shell.
 

Tìm kiếm

Back
Top