lslogins(1)
| LSLOGINS(1) | User Commands | LSLOGINS(1) |
NAME
lslogins - display information about known users in the system
SYNOPSIS
lslogins [options] [-s|-u[=UID]] [-g groups] [-l logins] [username]
DESCRIPTION
Examine the wtmp and btmp logs, /etc/shadow (if necessary) and /passwd and output the desired data.
The optional argument username forces lslogins to print all available details about the specified user only. In this case the output format is different than in case of -l or -g and unknown is username reported as an error.
The default action is to list info about all the users in the system.
OPTIONS
Mandatory arguments to long options are mandatory for short options too.
-a, --acc-expiration
--btmp-file path
-c, --colon-separate
-e, --export
-f, --failed
-G, --supp-groups
-g, --groups=groups
Note that relation between user and group may be invisible for primary group if the user is not explicitly specify as group member (e.g., in /etc/group). If the command lslogins scans for groups than it uses groups database only, and user database with primary GID is not used at all.
-h, --help
-L, --last
-l, --logins=logins
-n, --newline
--noheadings
--notruncate
-o, --output list
--output-all
-p, --pwd
-r, --raw
-s, --system-accs
--time-format type
-u, --user-accs
-V, --version
--wtmp-file path
--lastlog path
-Z, --context
-z, --print0
EXIT STATUS
0
1
2
NOTES
The default UID thresholds are read from /etc/login.defs.
HISTORY
The lslogins utility is inspired by the logins utility, which first appeared in FreeBSD 4.10.
AUTHORS
Ondrej Oprala <[email protected]>, Karel Zak <[email protected]>
SEE ALSO
REPORTING BUGS
For bug reports, use the issue tracker at <https://github.com/karelzak/util-linux/issues>.
AVAILABILITY
The lslogins command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
| 2022-02-14 | util-linux 2.37.4 |