Skip to content

Commit

Permalink
PE-5714
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshfrontline committed Dec 18, 2024
1 parent 6a99a80 commit f775f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cis-harden/harden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ harden_system() {
for each in echo /etc/cron.daily /etc/cron.hourly /etc/cron.d /etc/cron.monthly /etc/cron.weekly /etc/crontab
do
if [[ -e ${each} ]]; then
stat -L -c "%a %u %g" "${each}" | grep -E".00 0 0"
stat -L -c "%a %u %g" "${each}" | grep -E ".00 0 0"
if $? -ne 0 ; then
chown root:root "${each}"
chmod og-rwx "${each}"
Expand Down

0 comments on commit f775f47

Please sign in to comment.