[PATCH 05/22] [bugfix] Updated filepaths
Shawn Wells
shawn.d.wells at gmail.com
Mon Sep 16 01:31:07 UTC 2013
-------------- next part --------------
>From 84715e877d4f7f8f76211a316f9b484b21cda9c6 Mon Sep 17 00:00:00 2001
From: Shawn Wells <shawn at redhat.com>
Date: Wed, 11 Sep 2013 19:19:10 -0400
Subject: [PATCH 05/22] [bugfix] Updated filepaths
Just noticed these two were using /etc/sshd... updated!
---
.../fixes/bash/accounts_minimum_age_login_defs.sh | 2 +-
.../bash/accounts_password_minlen_login_defs.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh b/RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh
index 3ac76b9..245267e 100644
--- a/RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh
+++ b/RHEL6/input/fixes/bash/accounts_minimum_age_login_defs.sh
@@ -2,7 +2,7 @@ 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
+ sed -i "s/PASS_MIN_AGE.*/PASS_MIN_AGE $var_password_min_age/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
echo "PASS_MIN_AGE $var_password_min_age"
fi
diff --git a/RHEL6/input/fixes/bash/accounts_password_minlen_login_defs.sh b/RHEL6/input/fixes/bash/accounts_password_minlen_login_defs.sh
index 8ea789f..401cef1 100644
--- a/RHEL6/input/fixes/bash/accounts_password_minlen_login_defs.sh
+++ b/RHEL6/input/fixes/bash/accounts_password_minlen_login_defs.sh
@@ -2,7 +2,7 @@ source ./templates/support.sh
populate var_password_min_len
grep -q ^PASS_MIN_LEN /etc/login.defs && \
- sed -i "s/PASS_MIN_LEN.*/PASS_MIN_LEN $var_password_min_len/g" /etc/ssh/sshd_config
+ sed -i "s/PASS_MIN_LEN.*/PASS_MIN_LEN $var_password_min_len/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
echo "PASS_MIN_LEN $var_password_min_len"
fi
--
1.7.1
More information about the scap-security-guide
mailing list