Skip Bind Options Tweaking if Skip File Exists

This commit is contained in:
earnolmartin 2022-07-09 21:48:38 -06:00
parent a927c7a2f2
commit 053e3772f0
2 changed files with 9 additions and 4 deletions

View file

@ -3622,9 +3622,11 @@ echo -e "Securing PHPMyAdmin Configuration!\n"
# Secure PHPMyAdmin Configuration to Prevent Root Logins Except for Local Connections # Secure PHPMyAdmin Configuration to Prevent Root Logins Except for Local Connections
securePHPMyAdminConfiguration securePHPMyAdminConfiguration
echo -e "Disabling BIND Recursion\n" if [ ! -e "/etc/bind/ehcp-skip-recursion" ]; then
# Disable Bind Recursion: echo -e "Disabling BIND Recursion\n"
disableRecursiveBIND # Disable Bind Recursion:
disableRecursiveBIND
fi
echo -e "Securing web user against running cron jobs" echo -e "Securing web user against running cron jobs"
# Disable web user from using cronjobs # Disable web user from using cronjobs

View file

@ -3255,7 +3255,10 @@ fixBINDPerms
# Fix generic problems in Ubuntu # Fix generic problems in Ubuntu
genUbuntuFixes genUbuntuFixes
# Secure BIND9 Configuration # Secure BIND9 Configuration
disableRecursiveBIND if [ ! -e "/etc/bind/ehcp-skip-recursion" ]; then
# Disable Bind Recursion:
disableRecursiveBIND
fi
# Make it so that strangers can't just browse folders without an index file # Make it so that strangers can't just browse folders without an index file
secureApache secureApache
# Allow .htaccess file overrides for Ubuntu 14.04 and up (hopefully versions above) # Allow .htaccess file overrides for Ubuntu 14.04 and up (hopefully versions above)