30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 19264b192083d5cf38750a9cef0ec0a55eea3cfe Mon Sep 17 00:00:00 2001
|
|
From: zhangqiumiao <zhangqiumiao1@huawei.com>
|
|
Date: Thu, 10 Sep 2020 14:59:14 +0800
|
|
Subject: [PATCH] bugfix fix password policy
|
|
|
|
---
|
|
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 0177cf9..7e43a39 100644
|
|
--- a/data/interactive-defaults.ks
|
|
+++ b/data/interactive-defaults.ks
|
|
@@ -4,9 +4,9 @@ firstboot --enable
|
|
|
|
%anaconda
|
|
# Default password policies
|
|
-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
|
|
+pwpolicy root --strict --minlen=8 --minquality=1 --nochanges --notempty
|
|
+pwpolicy user --strict --minlen=8 --minquality=1 --nochanges --emptyok
|
|
+pwpolicy luks --strict --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
|
|
--
|
|
1.8.3.1
|
|
|