LSLOGINS(1) lslogins - lslogins [] [-s|-u[=UID]] [-g ] [-l ] [] wtmp btmp, /etc/shadow ( ) /passwd, . ' lslogins . -l -g, , , . . ' ' . -a, --acc-expiration (. shadow(5), ). ( root.) --btmp-file btmp. -c, --colon-separate , . -e, --export =. . --shell. -f, --failed . -G, --supp-groups . -g, --groups , . ; . . , ' , (, /etc/group). lslogins , , GID . -L, --last , . -l, --logins ( ). ; . . -n, --newline . --noheadings . --notruncate . -o, --output , . , +. --output-all Output all available columns. --list-columns to get a list of all supported columns. -H, --list-columns List the columns that can be specified with the --output option. Can be used with --json or --raw to get the list in a machine-readable format. -p, --pwd , ' (. -afL). -r, --raw ( ). -J, --json JSON format output. -s, --system-accs Show system accounts. These are by default all accounts with a UID between 101 and 999 (inclusive), with the exception of either nobody or nfsnobody (UID 65534). This hardcoded default may be overridden by the parameters SYS_UID_MIN and SYS_UID_MAX in the file /etc/login.defs. --time-format , ISO. . . -u, --user-accs Show user accounts. These are by default all accounts with a UID above 1000 (inclusive), with the exception of either nobody or nfsnobody (UID 65534). This hardcoded default may be overridden by the parameters UID_MIN and UID_MAX in the file /etc/login.defs. -h, --help . -V, --version . --wtmp-file wtmp. --lastlog-file path lastlog(8). -y, --shell , , . , , --export. , --export 2.37, --shell. -Z, --context . -z, --print0 -, . 0 , 1 , 2 (, ). UID /etc/login.defs. . " " The password is prefixed by '!!', and the user cannot login although the password is set or empty. This is common for new accounts without a set password. " ()" The password is not set (hash is missing); this is common for locked system accounts. Not requiring a password does not mean the user can log-in without a password. It depends on the password "lock" status. " " 'yes' means that there is no valid password. The password hash is missing, or the hash method is unknown or contains invalid chars. LIBSMARTCOLS_DEBUG=all libsmartcols. LIBSMARTCOLS_DEBUG_PADDING=on . lslogins logins, ' FreeBSD 4.10. Ondrej Oprala , Karel Zak group(5), passwd(5), shadow(5), utmp(5) lslogins util-linux, Linux . util-linux 2.42.2 2026-06-16 LSLOGINS(1)