diff --git a/etc/login.defs b/etc/login.defs index eba4bde7..f235e1b4 100644 --- a/etc/login.defs +++ b/etc/login.defs @@ -31,6 +31,15 @@ LOG_OK_LOGINS no # LASTLOG_ENAB yes +# +# Limit the highest user ID number for which the lastlog entries should +# be updated. +# +# No LASTLOG_UID_MAX means that there is no user ID limit for writing +# lastlog entries. +# +#LASTLOG_UID_MAX + # # Enable checking and display of mailbox status upon login. # @@ -332,8 +341,8 @@ CHFN_RESTRICT rwh # If only one of the MIN or MAX values is set, then this value will be used. # If MIN > MAX, the highest value will be used. # -# SHA_CRYPT_MIN_ROUNDS 5000 -# SHA_CRYPT_MAX_ROUNDS 5000 +#SHA_CRYPT_MIN_ROUNDS 5000 +#SHA_CRYPT_MAX_ROUNDS 5000 # # List of groups to add to the user's supplementary group set diff --git a/src/usermod.c b/src/usermod.c index c3718864..0ae50e34 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -1879,7 +1879,7 @@ static void update_lastlog (void) return; } - max_uid = (uid_t) getdef_ulong ("LASTLOG_MAX_UID", 0xFFFFFFFFUL); + max_uid = (uid_t) getdef_ulong ("LASTLOG_UID_MAX", 0xFFFFFFFFUL); if (user_newid > max_uid) { /* do not touch lastlog for large uids */ return;