from small one page howto to huge articles all in one place
 

search text in:





Poll
Which linux distribution do you use?







poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

99200

userrating:

average rating: 1.7 (84 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

214373

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

95425

userrating:

average rating: 1.3 (28 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





LSLOGINS

Section: User Commands (1)
Updated: April 2014
Index Return to Main Contents
 

NAME

lslogins - display information about known users in the system  

SYNOPSIS

lslogins [options] [-s|-u[=UID]] [-g groups] [-l logins]  

DESCRIPTION

Examine the wtmp and btmp logs, /etc/shadow (if necessary) and /etc/passwd and output the desired data.

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
Display data about the date of last password change and the account expiration date (see shadow(5) for more info). (Requires root privileges.)
--btmp-file path
Alternate path for btmp.
-c, --colon-separate
Separate info about each user with a colon instead of a newline.
-e, --export
Output data in the format of NAME=VALUE.
-f, --failed
Display data about the users' last failed login attempts.
-G, --supp-groups
Show information about groups.
-g, --groups=groups
Only show data of users belonging to groups. More than one group may be specified; the list has to be comma-separated.
-h, --help
Display help information and exit.
-L, --last
Display data containing information about the users' last login sessions.
-l, --logins=logins
Only show data of users with a login specified in logins (user names or user IDS). More than one login may be specified; the list has to be comma-separated.
-n, --newline
Display each piece of information on a separate line.
--noheadings
Do not print a header line.
--notruncate
Don't truncate output.
-o, --output list
Specify which output columns to print. Use --help to get a list of all supported columns.
-p, --pwd
Display information related to login by password (see also -afL).
-r, --raw
Raw output (no columnation).
-s, --system-accs[=threshold]
Show system accounts. These are by default all accounts with a UID below 1000 (non-inclusive), with the exception of either nobody or nfsnobody (UID 65534). The UID threshold can also be specified explicitly (necessary for some distributions that allocate UIDs starting from 100, 500 - or an entirely different value - rather than 1000).
--time-format type
Display dates in short, full or iso format. The default is short, this time format is designed to be space efficient and human readable.
-u, --user-accs[=threshold]
Show user accounts. These are by default all accounts with UID above 1000 (inclusive), with the exception of either nobody or nfsnobody (UID 65534). The UID threshold can also be specified explicitly (necessary for some distributions that allocate UIDs starting from 100, 500 - or an entirely different value - rather than 1000).
-V, --version
Display version information and exit.
--wtmp-file path
Alternate path for wtmp.
-Z, --context
Display the users' security context.
-z, --print0
Delimit user entries with a nul character, instead of a newline.

 

NOTES

The default UID thresholds are read from /etc/login.defs.

 

EXIT STATUS

0
if OK,
1
if incorrect arguments specified,
2
if a serious error occurs (e.g. a corrupt log).
 

SEE ALSO

group(5), passwd(5), shadow(5), utmp(5)  

HISTORY

The lslogins utility is inspired by the logins utility, which first appeared in FreeBSD 4.10.  

AUTHORS

Ondrej Oprala
Karel Zak

 

AVAILABILITY

The lslogins command is part of the util-linux package and is available from Linux Kernel Archive


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
NOTES
EXIT STATUS
SEE ALSO
HISTORY
AUTHORS
AVAILABILITY


Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 3.4 ms