To solve this problem simply create directory /var/run/clamav and chown it to clamav.clamav then modify your sendmail.cf to look for clmilter.sock there and modify your clamd config to place its clamd.sock in there. Then there is no need to run anything in a risky state.
I do the same thing with BIND so it can run in an unpriviledged state. Carl [EMAIL PROTECTED] ----- Original Message ----- From: "Fajar A. Nugraha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 10:23 AM Subject: Re: [Clamav-users] 0.66 > Nigel Horne wrote: > > >it is quite possible to run clamav-milter unprivileged with no dirty chmod 777s > > > > > > > Yes, but in my case it can NOT be in /var/run. > ClamAV runs as clamav (and apparently, so does clamav-milter), thus I get > > Feb 13 23:05:12 rh73-1 clamav-milter: ClamAv: Unable to bind to port > local:/var/run/clamav.sock: Permission denied > Feb 13 23:05:12 rh73-1 clamav-milter: ClamAv: Unable to create listening > socket on conn local:/var/run/clamav.sock > > This is with clamav-milter started as root. > I ended up putting clamd's and clamav-milter's socket in > /usr/local/share/clamav (writable by clamav user). It works fine. > Could you include your config (if it works) as part of standard > distribution (or somewhere in web's doc section) ? > > PS : > I would also like to add that on clamav-devel-20040212 Solaris build > is still broken due to > mbox.c:1653: `O_BINARY' undeclared > > Regards, > > Fajar A. Nugraha > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Clamav-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/clamav-users > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users