set_permisisons.sh sets exim to 755

Version 1.4

Bugfix
Finished

The script already did make the call correctly to set it to 4755: set_file /usr/sbin/exim root $RT_GRP 4755 The issue was that the set_file function called the chmod first, then the chown. The issue was that a 4755 file becomes reset to 755 when a chown is made on the file. The simple solution was to put the chown first, then chmod. In exim mainlog error you'd see would look like this if exim is 755 instead of 4755: unable to set gid=12 or uid=2345 (euid=8): domain_filter router If you see that error, type: chmod 4755 /usr/sbin/exim or run this fixed set_permission.sh: cd /usr/local/directadmin/scripts ./set_permissions.sh email but once done either, confirm it's set correctly: [root@server scripts]# ls -la /usr/sbin/exim -rwsr-xr-x 1 root root 856823 Mar 9 2011 /usr/sbin/exim [root@server scripts]# where you're looking for: rwsr and not: rwxr

Interested to try DirectAdmin? Get a 30-day Free Trial!