[PATCH 03/22] Added Remediation for accounts_minimum_age_login_defs
Shawn Wells
shawn.d.wells at gmail.com
Mon Sep 16 01:30:54 UTC 2013
-------------- next part --------------
>From ea33d8380bd1a10fc59cb5fb302b2993acbfa45d Mon Sep 17 00:00:00 2001
From: Shawn Wells <shawn at redhat.com>
Date: Wed, 11 Sep 2013 19:13:52 -0400
Subject: [PATCH 03/22] Added Remediation for accounts_minimum_age_login_defs
Based off prior template
---
.../fixes/bash/accounts_minimum_age_login_defs.sh | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
create mode 100644 RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh
diff --git a/RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh b/RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh
new file mode 100644
index 0000000..3ac76b9
--- /dev/null
+++ b/RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh
@@ -0,0 +1,8 @@
+source ./templates/support.sh
+populate var_password_min_age
+
+grep -q ^PASS_MIN_AGE /etc/login.defs && \
+ sed -i "s/PASS_MIN_AGE.*/PASS_MIN_AGE $var_password_min_age/g" /etc/ssh/sshd_config
+if ! [ $? -eq 0 ]; then
+ echo "PASS_MIN_AGE $var_password_min_age"
+fi
--
1.7.1
More information about the scap-security-guide
mailing list