Page 1 of 1

Clamav permissions

Posted: Wed May 21, 2008 4:15 pm
by Galactic Zero
Ok, what am I missing here?

[root@gz httpdocs]# freshclam
ClamAV update process started at Wed May 21 15:10:43 2008
main.cvd is up to date (version: 46, sigs: 231834, f-level: 26, builder: sven)
ERROR: chdir_tmp: Can't create directory ./clamav-9a6c236742c44cbb823ae0bd5bce8898
WARNING: Incremental update failed, trying to download daily.cvd
ERROR: getfile: Can't create new file /var/clamav/clamav-3fb571f641615bec8c92306667f9dcdb in /var/clamav
Hint: The database directory must be writable for UID 113 or GID 102
WARNING: Can't download daily.cvd from db.local.clamav.net

users clamav and qscand are group members of both clamav:
clamav:x:102:qscand,clamav
qscand:x:103:qscand

/var/clamav has qscand:qscand as owner and group.

This was all the default from the RPM's in Atomic SRPMs channel.

Thanks
Franklyn

Posted: Wed May 21, 2008 4:18 pm
by scott
Freshclam might be configured to run as userid clamav instead of qscand.

Posted: Thu May 22, 2008 12:21 pm
by Galactic Zero
This the spot to change that in freshclam.conf?

# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
DatabaseOwner clamav

Posted: Thu May 22, 2008 2:03 pm
by scott
Yup, thats the one

Posted: Thu May 22, 2008 3:03 pm
by Galactic Zero
Thanks, that fixed it.