On Jun 5, 2007, at 2:31 PM, Ken Morley wrote:
> I want clamd and freshclam (running in daemon mode) to create PID  
> files
> in /var/run.  Both are running as user and group "amavisd".  Amavisd
> does not have permissions to create files in /var/run.
>
> What is the best (safest) way to give amavisd permissions to create  
> the
> PID file in /var/run?

Create a subdirectory under /var/run like /var/run/clamav or /var/run/ 
amavis(d?) which is owned by the "amavisd" user and group, and create  
your pidfiles under there.  It is not desirable to make /var/run  
itself world-writable, although if you really want to do so, give it  
1777 permisions like /tmp has.

-- 
-Chuck

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to