summaryrefslogtreecommitdiffstats
path: root/login-utils/lslogins.1
Commit message (Collapse)AuthorAgeFilesLines
* lslogins: Fix discrepancies of SYS_UID_MINStanislav Brabec2019-04-241-3/+3
| | | | | | | | | | | | | | | | | | | | util-linux does not contain useradd. Its most popular implementation comes from shadow. SYS_UID_MIN is one of common parameters. Its hardcoded fallback value is equal to 101 in shadow useradd (see shadow-4.6/libmisc/find_new_uid.c: get_ranges()), but 201 in login-utils/lslogins.c. Let lslogins use the same fallback as useradd from shadow. Hopefully most distros define its custom value of SYS_UID_MIN in /etc/login.defs, so this problem is not visible. login-utils/lslogins.1 does not mention its default at all. Add a reference and improve text of lslogins(1) to prevent off-by-one interpretation. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: return 1 on "lslogins nonexisting"Karel Zak2018-08-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The default behavior for -l and -g is to silently ignore unknown login names, but this is very confusing when you explicitly specify just one login name. Note that the current implementation also prints empty "Last log" for nonexisting user. It seems ugly. # lslogins nonexisting Last logs: new version: # lslogins nonexisting lt-lslogins: cannot found 'nonexisting' # echo $? 1 The -l and -g behaviour has not been changed. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1614967 Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: add info about single-user output modeKarel Zak2018-08-131-1/+10
| | | | | | | | | | | | The supported command line synopsis is also lslogins foo and it provides different output than lslogins -l foo Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: add -o+<COLNAME> supportKarel Zak2018-05-231-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: add --output-all optionSami Kerola2018-05-031-0/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lslogins: be more explicit with -g in man pageKarel Zak2017-08-181-1/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: fix --user-accs and --system-accs docsKarel Zak2015-07-151-8/+8
| | | | | Reported-by: Mantas Mikulėnas <grawity@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix some spelling errors and typos in man pagesBill Pemberton2015-02-271-1/+1
| | | | | | | | | | | | | runuser.1: fix spelling implemenation -> implementation scriptreplay.1: fix spelling overide -> override unshare.1: fix spelling permamently -> permanently last.1: fix spelling preferrable -> preferable lslogins.1: fix spelling priviliges -> privileges hwclock.8.in: fix spelling transfered -> transferred prlimit.1: fix typo umlimited -> unlimited agetty.8: fix typo unnsupported -> unsupported Signed-off-by: Bill Pemberton <wfp5p@worldbroken.com>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-1/+1
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* docs: don't use bold or italics for "[option]" in synopsis of man pagesBenno Schulenberg2014-12-191-1/+4
| | | | | | | As per the convention shown in Documentation/howto-man-page.txt. Also make a few other tiny adjustments along the way. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lslogins: align usage() and manual with struct option longoptsSami Kerola2014-12-091-4/+1Star
| | | | | | | | Short option -G goes together with long option --supp-groups, while neither of -m or --groups-info has worked in a release so remove them from usage() and manual. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lslogins: add --noheadingsKarel Zak2014-07-161-0/+3
| | | | | | | That's fatal mistake that this option which is required for script is missing. Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: improve wording and formatting of the man pageBenno Schulenberg2014-06-301-36/+37
| | | | | | Some typos, spacing, line breaks, and missing optional arguments. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lslogins: cleanup some command line optionsKarel Zak2014-05-291-4/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: cleanup default outputsKarel Zak2014-05-291-4/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: cleanup usage()Karel Zak2014-05-291-3/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: cleanup time formatsKarel Zak2014-05-291-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: remove --sort-by-nameKarel Zak2014-05-291-3/+0Star
| | | | | | | | | | | If we really need a sort functionality hardcoded into lslogins(1) then we need a generic sort options (like for lsblk,--sort <column>). Note that it seems that "lslogins | sort --key <col>" is good enough for now as lslogins(1) does not convert any data to human readable non-precise format (like for example lsblk SIZE column etc.). Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: sync man page and usage()Karel Zak2014-05-161-30/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: pretty printing and extended -l,-gOndrej Oprala2014-05-151-14/+14
|
* lslogins: add functionalityOndrej Oprala2014-05-151-0/+3
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* lslogins: move to login-utilsOndrej Oprala2014-05-151-0/+118
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>