store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Wed May 22, 2013 9:09 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: Clamav permissions
Unread postPosted: Wed May 21, 2008 4:15 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Dec 06, 2004 10:43 pm
Posts: 449
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


Top
 Profile  
 
 Post subject:
Unread postPosted: Wed May 21, 2008 4:18 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
Freshclam might be configured to run as userid clamav instead of qscand.


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu May 22, 2008 12:21 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Dec 06, 2004 10:43 pm
Posts: 449
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

_________________
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu May 22, 2008 2:03 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
Yup, thats the one


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu May 22, 2008 3:03 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Dec 06, 2004 10:43 pm
Posts: 449
Thanks, that fixed it.

_________________
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group