diff --git a/etc/login.defs b/etc/login.defs index 5d9b9daf28..83f58d1fa5 100644 --- a/etc/login.defs +++ b/etc/login.defs @@ -206,19 +206,6 @@ UMASK 022 # If HOME_MODE is not set, the value of UMASK is used to create the mode. #HOME_MODE 0700 -# -# Password aging controls: -# -# PASS_MAX_DAYS Maximum number of days a password may be used. -# PASS_MIN_DAYS Minimum number of days allowed between password changes. -# PASS_MIN_LEN Minimum acceptable password length. -# PASS_WARN_AGE Number of days warning given before a password expires. -# -PASS_MAX_DAYS 99999 -PASS_MIN_DAYS 0 -PASS_MIN_LEN 5 -PASS_WARN_AGE 7 - # # If "yes", the user must be listed as a member of the first gid 0 group # in /etc/group (called "root" on most Linux systems) to be able to "su" @@ -339,15 +326,15 @@ LOGIN_TIMEOUT 60 PASS_CHANGE_TRIES 5 # -# Warn about weak passwords (but still allow them) if you are root. +# Password strength controls: # +# Warn about weak passwords (but still allow them) if you are root. PASS_ALWAYS_WARN yes - -# +# Minimum acceptable password length. +PASS_MIN_LEN 5 # Number of significant characters in the password for crypt(). # Default is 8, don't change unless your crypt() is better. # Only used for DES encryption algorithm. -# #PASS_MAX_LEN 8 #