summaryrefslogtreecommitdiffstats
path: root/login-utils/login.1
diff options
context:
space:
mode:
authorKarel Zak2019-01-11 12:16:00 +0100
committerKarel Zak2019-01-11 12:16:00 +0100
commit1a83c00d888fad89f09c4acf2033790d5dcae48e (patch)
treef6c7117d371628a95cfca4e5d2217e8e8ac7f6e4 /login-utils/login.1
parentlogin-utils/logindefs: clenaup API (diff)
downloadkernel-qcow2-util-linux-1a83c00d888fad89f09c4acf2033790d5dcae48e.tar.gz
kernel-qcow2-util-linux-1a83c00d888fad89f09c4acf2033790d5dcae48e.tar.xz
kernel-qcow2-util-linux-1a83c00d888fad89f09c4acf2033790d5dcae48e.zip
login: add support for login.defs(5) LASTLOG_UID_MAX
This new variable allows to keep lastlog file small and filter out things like huge nfsnobody UIDs. The variable is also supported by shadow-utils (adduser, etc.). Addresses: https://github.com/shadow-maint/shadow/pull/142/ Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/login.1')
-rw-r--r--login-utils/login.111
1 files changed, 11 insertions, 0 deletions
diff --git a/login-utils/login.1 b/login-utils/login.1
index b73eae147..084f6c90a 100644
--- a/login-utils/login.1
+++ b/login-utils/login.1
@@ -256,6 +256,17 @@ to change directory to her home. The default value is
.IR yes .
.RE
.PP
+.B LASTLOG_UID_MAX
+(unsigned number)
+.RS 4
+Highest user ID number for which the lastlog entries should be
+updated. As higher user IDs are usually tracked by remote user
+identity and authentication services there is no need to create
+a huge sparse lastlog file for them. No LASTLOG_UID_MAX option
+present in the configuration means that there is no user ID limit
+for writing lastlog entries.
+.RE
+.PP
.B LOG_UNKFAIL_ENAB
(boolean)
.RS 4