This information can be gathererd using the
Display account status information. The status information consists of 7 fields. The first field is the user's login name. The second field indicates if the user account has a locked password
(L), has no password (NP), or has a usable password (P). The third field gives the date of the last password change. The next four fields are the minimum age, maximum age, warning period, and
inactivity period for the password. These ages are expressed in days.
To check the status of every user on the system, run
passwd -a -S
A disabled (locked) user might look like this:
apache L 08/30/2019 0 99999 7 -1
L, indicating the account is locked.
A regular user might look like this:
panki P 09/23/2019 0 99999 7 -1