[clamav-users] Spam:*******, Re: clamav on centos 7: changing runas user
prabhu at fernridge.com
Wed Jan 20 20:49:59 EST 2016
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.
From: clamav-users [mailto:clamav-users-bounces at lists.clamav.net] On Behalf Of Dennis Peterson
Sent: Thursday, January 21, 2016 3:21 AM
To: ClamAV users ML <clamav-users at lists.clamav.net>
Subject: Spam:*******, Re: [clamav-users] clamav on centos 7: changing runas user
Correction on the path - should be /etc/tmpfiles.d.
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.
> 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
>> 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 at backupemail run]# groups mail
>> mail : mail clamscan
>> [root at backupemail run]# groups clamscan
>> clamscan : clamscan mail
>> [root at backupemail run]# ls –lZ |grep clamd.scan
>> drwx--x---. clamscan clamscan system_u:object_r:antivirus_var_run_t:s0
>> 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
>> Help us build a comprehensive ClamAV guide:
> Help us build a comprehensive ClamAV guide:
Help us build a comprehensive ClamAV guide:
More information about the clamav-users