2020-06-29 15:28:10 +08:00
|
|
|
From e8ce5155f21af58e119c61e10895fcb5d8c21995 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: t_feng <fengtao40@huawei.com>
|
|
|
|
|
Date: Thu, 18 Jun 2020 17:00:13 +0800
|
2020-07-01 19:07:10 +08:00
|
|
|
Subject: [PATCH] add passwd policy
|
2020-06-29 15:28:10 +08:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
data/interactive-defaults.ks | 6 +++---
|
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/data/interactive-defaults.ks b/data/interactive-defaults.ks
|
|
|
|
|
index a906c8c..0177cf9 100644
|
|
|
|
|
--- a/data/interactive-defaults.ks
|
|
|
|
|
+++ b/data/interactive-defaults.ks
|
|
|
|
|
@@ -4,9 +4,9 @@ firstboot --enable
|
2019-12-25 15:41:33 +08:00
|
|
|
|
|
|
|
|
%anaconda
|
|
|
|
|
# Default password policies
|
|
|
|
|
-pwpolicy root --notstrict --minlen=6 --minquality=1 --nochanges --notempty
|
|
|
|
|
-pwpolicy user --notstrict --minlen=6 --minquality=1 --nochanges --emptyok
|
|
|
|
|
-pwpolicy luks --notstrict --minlen=6 --minquality=1 --nochanges --notempty
|
|
|
|
|
+pwpolicy root --notstrict --minlen=8 --minquality=1 --nochanges --notempty
|
|
|
|
|
+pwpolicy user --notstrict --minlen=8 --minquality=1 --nochanges --emptyok
|
|
|
|
|
+pwpolicy luks --notstrict --minlen=8 --minquality=1 --nochanges --notempty
|
|
|
|
|
# NOTE: This applies only to *fully* interactive installations, partial kickstart
|
|
|
|
|
# installations use defaults specified in pyanaconda/pwpolicy.py.
|
|
|
|
|
# Automated kickstart installs simply ignore the password policy as the policy
|
2020-06-29 15:28:10 +08:00
|
|
|
--
|
|
|
|
|
2.23.0
|
|
|
|
|
|