Page 1 of 1

MailScanner wrappers permission denied

Posted: 23 Jun 2016, 03:26
by callum-jh
Hi,

I've just installed Mailscanner using the installation script on a fresh cPanel, Cloud Linux box.

I get an email from the hourly cron

Code: Select all

/etc/cron.hourly/update_virus_scanners: 
and i get the error message

Code: Select all

/etc/cron.hourly/update_virus_scanners: line 63: /usr/mailscanner/usr/lib/MailScanner/wrapper/avg-wrapper: Permission denied 
/etc/cron.hourly/update_virus_scanners: line 63: /usr/mailscanner/usr/lib/MailScanner/wrapper/bitdefender-wrapper: Permission denied 
/etc/cron.hourly/update_virus_scanners: line 63: /usr/mailscanner/usr/lib/MailScanner/wrapper/clamav-wrapper: Permission denied 
/etc/cron.hourly/update_virus_scanners: line 63: /usr/mailscanner/usr/lib/MailScanner/wrapper/f-secure-wrapper: Permission denied 
/etc/cron.hourly/update_virus_scanners: line 63: /usr/mailscanner/usr/lib/MailScanner/wrapper/generic-wrapper: Permission denied 
/etc/cron.hourly/update_virus_scanners: line 63: /usr/mailscanner/usr/lib/MailScanner/wrapper/sophos-wrapper: Permission denied 

All these files are owned by root with -rw-r--r-- perms.

I tried running these files directly as root

when i run

Code: Select all

sh /usr/mailscanner/usr/lib/MailScanner/wrapper/clamav-wrapper
as root the file seems to execute correctly.

Just hoping someone else has had this issue, or can see what the issue is

Re: MailScanner wrappers permission denied

Posted: 23 Jun 2016, 08:23
by ForumAdmin
This should fix it:

Code: Select all

chmod +x /usr/mailscanner/usr/lib/MailScanner/wrapper/*
We've just released v3.06 of the installer script that does this now.