V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-08 21:38:05 +02:00
parent f9ba15e1da
commit a9fab33829
19 changed files with 169 additions and 19 deletions

View File

@@ -12,7 +12,7 @@
guard_sourcing
###########################################################################################
#######################################
# Hardening files and directories.
# Globals:
# None
@@ -20,8 +20,11 @@ guard_sourcing
# None
# Returns:
# 0: on success
###########################################################################################
#######################################
hardening_files() {
chmod 0700 /etc/cron.d /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly
chmod 0700 /etc/sudoers.d
chmod 0700 /etc/crontab
guard_dir && return 0
}
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh