↑ ↓ select, Enter open, Esc close

Show the password status of all user accounts

root@server
passwd -S -a

Prints one line per account with username, status and the date of the last password change. P means a password is set, L means locked and NP means the account has no password at all. Accounts with NP and a login shell are a serious risk.

Note: System accounts normally appear with L.

Also searched as

  • find accounts without password linux
  • passwd -S all users
  • check locked user accounts

Related one-liners

All in Security

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.