From 9d5588a438bcdbdf1c2ade529088eeefc81f9506 Mon Sep 17 00:00:00 2001 From: Josh Max Date: Sat, 14 Nov 2015 11:46:24 -0800 Subject: [PATCH] Minor formatting changes for harden_ubuntu script --- Ubuntu_Hardening/harden_ubuntu.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Ubuntu_Hardening/harden_ubuntu.sh b/Ubuntu_Hardening/harden_ubuntu.sh index b6714d3..63aa623 100755 --- a/Ubuntu_Hardening/harden_ubuntu.sh +++ b/Ubuntu_Hardening/harden_ubuntu.sh @@ -105,17 +105,17 @@ change_user_passwords() { } disable_guest_account() { - echo 'allow-guest=false' >> /etc/lightdm/lightdm.conf - echo "Disabled guest account." + echo 'allow-guest=false' >> /etc/lightdm/lightdm.conf + echo "Disabled guest account." } setup_password_history() { - echo "Setting up password history.." - # making these seperate commands for readability's sake as well as mutability. - sed -i.bak -e 's/PASS_MAX_DAYS\t[[:digit:]]\+/PASS_MAX_DAYS\t90/' /etc/login.defs - sed -i -e 's/PASS_MIN_DAYS\t[[:digit:]]\+/PASS_MIN_DAYS\t10/' /etc/login.defs - sed -i -e 's/PASS_WARN_AGE\t[[:digit:]]\+/PASS_WARN_AGE\t7/' /etc/login.defs - echo "Max days set to: 90, Min days: 10, Warn age: 7." + echo "Setting up password history.." + # making these seperate commands for readability's sake as well as mutability. + sed -i.bak -e 's/PASS_MAX_DAYS\t[[:digit:]]\+/PASS_MAX_DAYS\t90/' /etc/login.defs + sed -i -e 's/PASS_MIN_DAYS\t[[:digit:]]\+/PASS_MIN_DAYS\t10/' /etc/login.defs + sed -i -e 's/PASS_WARN_AGE\t[[:digit:]]\+/PASS_WARN_AGE\t7/' /etc/login.defs + echo "Max days set to: 90, Min days: 10, Warn age: 7." } disable_root_account() {