LOGINS(1) User Commands LOGINS(1)

logins - list login information

logins [-admopstux] [-g group[,...]] [-l login[,...]]

Logins lists the system's login database.

The logins command accepts the following options:

Add the days of inactivity the password remains valid, and the password expiration date to the output.
Show logins with duplicate uids only.
For every login, show all of its group memberships.
Separate output by colons.
Show logins with an empty password string only.
Show system logins only.
Sort output by login name instead of used id.
Show regular user logins only.
Extended format. Adds the following fields for each login: home directory, login shell, password status (PS for password, NP for no password, LK for locked), date of last password change formatted as mmddyy, minimal number of days between password changes, maximum number of days between password changes, days before an expiration warning message is issued to the user.
Restrict output to the given group. Multiple groups may be given, separated by commas.
Restrict output to the given login. Multiple logins may be given, separated by commas.

/etc/passwd
user database
/etc/group
group database
/etc/shadow
password and aging information database

listusers(1), passwd(5), shadow(5)

System logins are the ones whose user id is below 100.

Reading password and aging information requires special privilege.

4/17/03 Heirloom Toolchest