]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
etc/login.defs: Group password strength controls
authorAlejandro Colomar <alx@kernel.org>
Tue, 16 Dec 2025 12:33:17 +0000 (13:33 +0100)
committerSerge Hallyn <serge@hallyn.com>
Wed, 15 Jul 2026 14:07:44 +0000 (09:07 -0500)
Reported-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
etc/login.defs

index f7c1618d0997b08a30a1f608fa35a27857dd633d..83f58d1fa5a28bd1fafc4f4be5dbe7780fd47f4a 100644 (file)
@@ -206,13 +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_MIN_LEN    Minimum acceptable password length.
-#
-PASS_MIN_LEN   5
-
 #
 # 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"
@@ -333,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
 
 #