LSLOGINS(1) User Commands LSLOGINS(1) (NAME) lslogins - (SYNOPSIS) lslogins [options] [-s|-u[=UID]] [-g groups] [-l logins] [username] (DESCRIPTION) wtmp btmp /etc/shadow ( ) /passwd . username lslogins . -l -g (username) . . (OPTIONS) . -a, --acc-expiration ( shadow(5) ). ( /root .) --btmp-file path btmp. -c, --colon-separate (:) . -e, --export NAME=VALUE. --shell . -f, --failed . -G, --supp-groups (supplementary groups). -g, --groups groups groups . . . ( /etc/group). lslogins GID . -L, --last . -l, --logins logins logins ( UID). . . -n, --newline . --noheadings . --notruncate / . -o, --output list . list +list . --output-all . --list-columns . -H, --list-columns --output . --json --raw . -p, --pwd ( -afL ). -r, --raw ( ). -J, --json JSON. -s, --system-accs . UID ( ) nobody nfsnobody ( UID ). SYS_UID_MIN SYS_UID_MAX /etc/login.defs . --time-format type short () full () iso. short . -u, --user-accs . UID ( ) nobody nfsnobody ( UID ). UID_MIN UID_MAX /etc/login.defs . -h, --help . -V, --version . --wtmp-file path wtmp. --lastlog-file path lastlog(8). -y, --shell . --export . 2.37 --export --shell . -Z, --context (security context) . -z, --print0 null () . (EXIT STATUS) 0 (OK) 1 2 ( ). (NOTES) UID /etc/login.defs . (Password status) . "Password is locked" '!!' . . "Password not required (empty)" ( ) . . "Login by password disabled" 'yes' . () . (ENVIRONMENT) LIBSMARTCOLS_DEBUG=all libsmartcols . LIBSMARTCOLS_DEBUG_PADDING=on . LIBSMARTCOLS_JSON=compact|lines JSON --json . compact JSON lines JSON Lines ( JSON ). JSON (pretty-printed) . (HISTORY) lslogins logins FreeBSD 4.10 . (AUTHORS) Ondrej Oprala , Karel Zak (SEE ALSO) group(5), passwd(5), shadow(5), utmp(5) (REPORTING BUGS) . (AVAILABILITY) lslogins util-linux . . util-linux 2.42.3 2026-09-02 LSLOGINS(1)