Dear All,

 

I am having little trouble with configuring Clamav sever on centos 7 to run as 
different user, the mail problem for me is that the /var/run/clam.scan folder 
permission reverts back to its original permission and user name after reboot.

 

OS: centos 7 64bit

Selinux: enabled

Clamav: installed from epel repo

 

The user I am trying to run is “mail” and I tried to change the folder of 
/var/run/clam.scan to allow group users to read and write but after every 
restart it changes to default permission there by not allowing me to run the 
Clamav as different user.

User mail and clamscan are belong to each other group.

 

[root@backupemail run]# groups mail

mail : mail clamscan

[root@backupemail run]# groups clamscan

clamscan : clamscan mail

[root@backupemail run]# ls –lZ |grep clamd.scan

drwx--x---. clamscan clamscan system_u:object_r:antivirus_var_run_t:s0 
clamd.scan

 

if I change the permission by running chmod g+rw clamd.scan, the permission 
does not persist over reboot of the OS 

 

if anyone can help/share some info It would highly appreciated.

 

With regard
Prabhu 

_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to