Where is the issue #15
Description
Hi Nozaq,
I am trying to harden the amazon linux2 with the bash script you have provided, but the amazon linux is not hardened and the script is also not giving proper out.
Can you please help me in finding where is the issue. Please.
here is the output:
INFO:root:[Config] Upstream time server is set as "169.254.169.123"
INFO:root:[Config] chrony will be used for time synchronization
INFO:root:Backing up /etc/modprobe.d/CIS.conf into /etc/modprobe.d/CIS.conf.bak...
INFO:root:Backing up /etc/sysconfig/init into /etc/sysconfig/init.bak...
INFO:root:Backing up /etc/security/limits.conf into /etc/security/limits.conf.bak...
INFO:root:Backing up /etc/sysctl.conf into /etc/sysctl.conf.bak...
INFO:root:Backing up /etc/motd into /etc/motd.bak...
INFO:root:Backing up /etc/issue into /etc/issue.bak...
INFO:root:Backing up /etc/issue.net into /etc/issue.net.bak...
INFO:root:Backing up /etc/chrony.conf into /etc/chrony.conf.bak...
INFO:root:Backing up /etc/sysconfig/chronyd into /etc/sysconfig/chronyd.bak...
Note: Forwarding request to 'systemctl enable chronyd.service'.
INFO:root:Backing up /etc/postfix/main.cf into /etc/postfix/main.cf.bak...
INFO:root:Backing up /etc/rsyslog.conf into /etc/rsyslog.conf.bak...
INFO:root:Backing up /etc/ssh/sshd_config into /etc/ssh/sshd_config.bak...
INFO:root:Backing up /etc/security/pwquality.conf into /etc/security/pwquality.conf.bak...
INFO:root:Backing up /etc/login.defs into /etc/login.defs.bak...
INFO:root:Backing up /etc/bashrc into /etc/bashrc.bak...
INFO:root:Backing up /etc/profile into /etc/profile.bak...
INFO:root:Backing up /etc/pam.d/su into /etc/pam.d/su.bak...