Man page - lslogins(1)
Packages contas this manual
- x86_64(8)
- terminal-colors.d(5)
- getty(8)
- blkid(8)
- scols-filter(5)
- lslocks(8)
- chmem(8)
- uclampset(1)
- blkzone(8)
- whereis(1)
- linux32(8)
- chrt(1)
- isosize(8)
- runuser(1)
- rev(1)
- rtcwake(8)
- zramctl(8)
- mkswap(8)
- blockdev(8)
- ipcrm(1)
- adjtime_config(5)
- readprofile(8)
- setterm(1)
- lsns(8)
- fsck(8)
- setpriv(1)
- lsipc(1)
- ipcmk(1)
- setsid(1)
- wdctl(8)
- fsfreeze(8)
- agetty(8)
- mountpoint(1)
- fstrim(8)
- ionice(1)
- choom(1)
- i386(8)
- unshare(1)
- sulogin(8)
- nsenter(1)
- mcookie(1)
- linux64(8)
- flock(1)
- blkdiscard(8)
- ipcs(1)
- partx(8)
- hardlink(1)
- swaplabel(8)
- ldattach(8)
- su(1)
- chcpu(8)
- setarch(8)
- wipefs(8)
- dmesg(1)
- lslogins(1)
- lscpu(1)
- fallocate(1)
- findmnt(8)
- namei(1)
- switch_root(8)
- more(1)
- taskset(1)
- getopt(1)
- rename.ul(1)
- lsmem(1)
- prlimit(1)
- findfs(8)
- lsblk(8)
- mkfs(8)
- pivot_root(8)
apt-get install util-linux
Available languages:
en pl tr uk ro sr deManual
| 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 the relation between user and group may be invisible for the primary group if the user is not explicitly specified as group member (e.g., in /etc/group). If the command lslogins scans for groups then it uses the groups database only, and the user database with primary GID is not used at all.
-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
-h, --help
-V, --version
--wtmp-file path
--lastlog path
-y, --shell
-Z, --context
-z, --print0
EXIT STATUS
0
1
2
NOTES
The default UID thresholds are read from /etc/login.defs.
Password status
Multiple fields describe password status.
"Password is locked"
"Password not required (empty)"
"Login by password disabled"
HISTORY
The lslogins utility is inspired by the logins utility, which first appeared in FreeBSD 4.10.
AUTHORS
Ondrej Oprala <ooprala@redhat.com>, Karel Zak <kzak@redhat.com>
SEE ALSO
group(5), passwd(5), shadow(5), utmp(5)
REPORTING BUGS
For bug reports, use the issue tracker <https://github.com/util-linux/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/>.
| 2025-02-26 | util-linux 2.41 |