Hi there, On Wed, 2 Jan 2008 Joseph L. Casale wrote:
> I did a yum install from rpmforge of the 0.92 release under CentOS > 5.1 and created the users using the pdf document as guide. If I > issue #service clamd start it errors out with "ERROR: Unable to open > file or directory". I have searched the mailing list archives and it > seems this is a common configuration error. I do believe my perms > are right? If I start clamd by #sudo -u clamav clamd, it starts and > functions correctly? > > Reading the docs, root needs to start clamd for the service to drop > to a non privileged user, so why can't root start clamd in my > config? Root can do anything. :) > If user clamav can start it, it surely mustn't be a perms issue? No, it does sound like a permissions problem. Presumably when root runs 'service clamd start' the configuration that it's using tells root to give clamd the permissions of some user other than clamav, or it actually needs some other permissions than those of clamav. I'm not familiar with CentOS, but I gather it's based on RedHat so you might find what you're looking for in /etc/rc.d or /etc/sysconfig or somewhere like that. Alternatively you could just run clamd (and freshclam?) in rc.local and remove the service, but I don't know if that's good advice or not. :) -- 73, Ged. _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html