Very good - thanks for the closure on your problem.
dp
On 1/20/16 5:49 PM, Prabhu Mannu wrote:
Dear Dennis,
Yes you are absolutely right, the correction on the file
/etc/tempfiles.d/clam.scan.conf file fixed the issue
Thank you very much for your help.
With regards
Prabhu
-----Original Message-----
From: clamav-users [mailto:[email protected]] On Behalf Of
Dennis Peterson
Sent: Thursday, January 21, 2016 3:21 AM
To: ClamAV users ML <[email protected]>
Subject: Spam:*******, Re: [clamav-users] clamav on centos 7: changing runas
user
Correction on the path - should be /etc/tmpfiles.d.
dp
On 1/20/16 10:28 AM, Dennis Peterson wrote:
/var/run is a link to /run which is a tmpfs file system. Look in
/etc/sysconfig/tmpfiles.d for a config file for clamav and see man tmpfiles.d
to understand the file format.
It is sometimes (well, frequently) helpful to download an rpm package and look
inside it to see all the files that will be installed and where. This is
particularly true if you are using systemd for the first time.
dp
On 1/19/16 8:15 PM, Prabhu Mannu wrote:
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
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml