Ensure permission/ownership on blocked_script_paths and blocked_authenticated_users

Version 1.5

Bugfix
Finished

Blockcracking: When a path or authentication is blocked by BlockCracking, BC will use the mail_task.queue to notify DA of the block that has been done. This change will cause DA to check the ownership and permissions of those 2 files to ensure they're set to mail:mail and chmod 600. If not, they'll be changed, and a note will be added to your errortask.log, eg: 2015:11:23-22:39:45: Ownership of /var/spool/exim/blocked_authenticated_users is root but should be owned by mail. Changed ownershp 2015:11:23-22:39:45: Permission of /var/spool/exim/blocked_authenticated_users are -rwxr-xr-x but should be set to -rw-------. Changed permissions. 2015:11:23-22:39:45: Ownership of /var/spool/exim/blocked_script_paths is root but should be owned by mail. Changed ownershp 2015:11:23-22:39:45: Permission of /var/spool/exim/blocked_script_paths are -rwxr-xr-x but should be set to -rw-------. Changed permissions.

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