Skip to content

Commit d2ea0c4

Browse files
etc/login.defs: Group password strength controls
Reported-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
1 parent 1d4fae2 commit d2ea0c4

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

etc/login.defs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,6 @@ UMASK 022
206206
# If HOME_MODE is not set, the value of UMASK is used to create the mode.
207207
#HOME_MODE 0700
208208

209-
#
210-
# Password aging controls:
211-
#
212-
# PASS_MIN_LEN Minimum acceptable password length.
213-
#
214-
PASS_MIN_LEN 5
215-
216209
#
217210
# If "yes", the user must be listed as a member of the first gid 0 group
218211
# in /etc/group (called "root" on most Linux systems) to be able to "su"
@@ -263,15 +256,15 @@ LOGIN_TIMEOUT 60
263256
PASS_CHANGE_TRIES 5
264257

265258
#
266-
# Warn about weak passwords (but still allow them) if you are root.
259+
# Password strength controls:
267260
#
261+
# Warn about weak passwords (but still allow them) if you are root.
268262
PASS_ALWAYS_WARN yes
269-
270-
#
263+
# Minimum acceptable password length.
264+
PASS_MIN_LEN 5
271265
# Number of significant characters in the password for crypt().
272266
# Default is 8, don't change unless your crypt() is better.
273267
# Only used for DES encryption algorithm.
274-
#
275268
#PASS_MAX_LEN 8
276269

277270
#

0 commit comments

Comments
 (0)