exim/procmail command permissions

This commit is contained in:
Bob Mottram 2016-11-30 13:12:15 +00:00
parent b97ec3892b
commit 3f58fc17d2
2 changed files with 28 additions and 0 deletions

View File

@ -907,6 +907,13 @@ function install_email_with_tor {
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Maildir
fi
if [ -f /usr/sbin/exim ]; then
chmod u+s /usr/sbin/exim
fi
if [ -f /usr/sbin/exim4 ]; then
chmod u+s /usr/sbin/exim4
fi
function_check configure_firewall_for_email
configure_firewall_for_email
dpkg-reconfigure --frontend noninteractive exim4-config
@ -1018,6 +1025,13 @@ function install_email_basic {
function_check configure_firewall_for_email
configure_firewall_for_email
if [ -f /usr/sbin/exim ]; then
chmod u+s /usr/sbin/exim
fi
if [ -f /usr/sbin/exim4 ]; then
chmod u+s /usr/sbin/exim4
fi
dpkg-reconfigure --frontend noninteractive exim4-config
systemctl restart exim4
}
@ -1061,6 +1075,10 @@ function create_procmail {
chown root:root /etc/skel/.procmailrc
fi
if [ -f /usr/bin/procmail ]; then
chmod 6755 /usr/bin/procmail
fi
mark_completed $FUNCNAME
}

View File

@ -456,6 +456,16 @@ function lockdown_permissions {
chmod 4755 /usr/bin/sudo
chmod 4755 /usr/lib/sudo/sudoers.so
chown root:root /etc/sudoers
if [ -f /usr/bin/procmail ]; then
chmod 6755 /usr/bin/procmail
fi
if [ -f /usr/sbin/exim ]; then
chmod u+s /usr/sbin/exim
fi
if [ -f /usr/sbin/exim4 ]; then
chmod u+s /usr/sbin/exim4
fi
}
function disable_core_dumps {