MailScanner wrappers permission denied

Discuss our MailScanner install script and MailScanner itself
Post Reply
callum-jh
Junior Member
Posts: 1
Joined: 23 Jun 2016, 03:20

MailScanner wrappers permission denied

Post 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
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: MailScanner wrappers permission denied

Post 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.
Post Reply