On Mon, 29 Dec 2003, Jakub Jankowski wrote:

>On 2003-12-29, Pat Masterson wrote:
>
>> It is not clamd that is the problem. It is the clamav-milter that wont
>>start. It used to work OK before I upgraded.
>
>clamav-milter uses User directive from clamav.conf and drops root
>privileges *before* creating listening socket. Take a look into
>clamav-milter.c, lines 667-683.
>

 I believe clamav user does have permissions to write into /var/run:

Script started on Mon Dec 29 21:18:43 2003
# id
uid=0(root) gid=1(other)
# su - clamav
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002

> id
uid=1058(clamav) gid=367(clamav)
> ls -al  /var/run/clmilter.sock
/var/run/clmilter.sock: No such file or directory
> touch /var/run/clmilter.sock
> ls -al  /var/run/clmilter.sock
-rw-------   1 clamav   clamav         0 Dec 29 21:19 /var/run/clmilter.sock
> rm   /var/run/clmilter.sock
> ls -al  /var/run/clmilter.sock
/var/run/clmilter.sock: No such file or directory
>exit
# /usr/local/sbin/clamav-milter -blo /var/run/clmilter.sock
# date
Mon Dec 29 21:23:01 EST 2003
# tail -2 /var/adm/messages
Dec 29 21:22:58 gateway clamav-milter[29280]: [ID 462450 user.error] ClamAv: Unable to 
bind to port /var/run/clmilter.sock: Permission denied

Dec 29 21:22:58 gateway clamav-milter[29280]: [ID 513961 user.error] ClamAv: Unable to 
create listening socket on conn /var/run/clmilter.sock
#


*-----------------------------------------------------------------------------*
*  Pat Masterson  B38-01,  Northrop Grumman,     *  Ham:KE2LJ
*  South Oyster Bay Rd. Plant 1.                 *  President Grumman Amateur
*  Bethpage, NY 11714                            *  Radio Club  WA2LQO
*  email: [EMAIL PROTECTED]   Fone: 516-346-7125   *  www.qsl.net/wa2lqo
*-----------------------------------------------------------------------------*


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to