浏览代码

exim/procmail command permissions

Bob Mottram 8 年前
父节点
当前提交
3f58fc17d2
共有 2 个文件被更改,包括 28 次插入0 次删除
  1. 18
    0
      src/freedombone-base-email
  2. 10
    0
      src/freedombone-utils-setup

+ 18
- 0
src/freedombone-base-email 查看文件

907
         chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Maildir
907
         chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Maildir
908
     fi
908
     fi
909
 
909
 
910
+    if [ -f /usr/sbin/exim ]; then
911
+        chmod u+s /usr/sbin/exim
912
+    fi
913
+    if [ -f /usr/sbin/exim4 ]; then
914
+        chmod u+s /usr/sbin/exim4
915
+    fi
916
+
910
     function_check configure_firewall_for_email
917
     function_check configure_firewall_for_email
911
     configure_firewall_for_email
918
     configure_firewall_for_email
912
     dpkg-reconfigure --frontend noninteractive exim4-config
919
     dpkg-reconfigure --frontend noninteractive exim4-config
1018
     function_check configure_firewall_for_email
1025
     function_check configure_firewall_for_email
1019
     configure_firewall_for_email
1026
     configure_firewall_for_email
1020
 
1027
 
1028
+    if [ -f /usr/sbin/exim ]; then
1029
+        chmod u+s /usr/sbin/exim
1030
+    fi
1031
+    if [ -f /usr/sbin/exim4 ]; then
1032
+        chmod u+s /usr/sbin/exim4
1033
+    fi
1034
+
1021
     dpkg-reconfigure --frontend noninteractive exim4-config
1035
     dpkg-reconfigure --frontend noninteractive exim4-config
1022
     systemctl restart exim4
1036
     systemctl restart exim4
1023
 }
1037
 }
1061
         chown root:root /etc/skel/.procmailrc
1075
         chown root:root /etc/skel/.procmailrc
1062
     fi
1076
     fi
1063
 
1077
 
1078
+    if [ -f /usr/bin/procmail ]; then
1079
+        chmod 6755 /usr/bin/procmail
1080
+    fi
1081
+
1064
     mark_completed $FUNCNAME
1082
     mark_completed $FUNCNAME
1065
 }
1083
 }
1066
 
1084
 

+ 10
- 0
src/freedombone-utils-setup 查看文件

456
     chmod 4755 /usr/bin/sudo
456
     chmod 4755 /usr/bin/sudo
457
     chmod 4755 /usr/lib/sudo/sudoers.so
457
     chmod 4755 /usr/lib/sudo/sudoers.so
458
     chown root:root /etc/sudoers
458
     chown root:root /etc/sudoers
459
+
460
+    if [ -f /usr/bin/procmail ]; then
461
+        chmod 6755 /usr/bin/procmail
462
+    fi
463
+    if [ -f /usr/sbin/exim ]; then
464
+        chmod u+s /usr/sbin/exim
465
+    fi
466
+    if [ -f /usr/sbin/exim4 ]; then
467
+        chmod u+s /usr/sbin/exim4
468
+    fi
459
 }
469
 }
460
 
470
 
461
 function disable_core_dumps {
471
 function disable_core_dumps {