Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2004 16:44:42 +0300
From:      Mykola Dzham <i@levsha.org.ua>
To:        "Haulmark, Chris" <chris@sigd.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Amavisd-new and clamav user/group permissions conflictions?
Message-ID:  <20041019134442.GP67677@univ.kiev.ua>
In-Reply-To: <6FC9F9894A9F8C49A722CF9F2132FC22021564CD@ms05.mailstreet2003.net>
References:  <6FC9F9894A9F8C49A722CF9F2132FC22021564CD@ms05.mailstreet2003.net>

next in thread | previous in thread | raw e-mail | index | archive | help
 Haulmark, Chris (chris@sigd.net):
> I installed security/amavisd-new (2.1.2,1) and chose security/clamav (0.80.r4)
> as my antivirus solution.
> 
> In the /usr/local/etc/clamd.conf, it had clamav as the default user for clamd
> to be running under.  /usr/local/etc/amavisd.conf shows vscan as the default
> user.
> 
> -----------------
> %ls -alh /var/amavis/
> total 12
> drwxr-x---   5 vscan  vscan  512B Oct 16 15:23 .
> drwxr-xr-x  24 root   wheel  512B Oct 16 14:02 ..
> drwx------   2 vscan  vscan  512B Oct 16 16:10 .spamassassin
> -rw-r-----   1 vscan  vscan   0B Oct 16 16:10 amavisd-24661.lock
> -rw-r-----   1 vscan  vscan   6B Oct 16 15:23 amavisd.pid
> drwxr-x---   2 vscan  vscan  512B Oct 16 15:23 db
> drwxr-x---   4 vscan  vscan  512B Oct 16 16:10 tmp
> %
> -----------------
> 
> %ls -alh /var/run | grep clamav
> drwxr-xr-x   2 clamav  clamav    512B Oct 16 16:09 clamav
> %
> 
> -----------------
> 
> %ps -aux | grep clamd
> clamav    24914  0.0  1.2  6808 6348  ??  Ss    4:29PM   0:00.00 /usr/local/sbin/clamd
> 
> -----------------
> 
> %ps -aux | grep amavisd
> vscan     24664  0.0  6.2 33856 32128  ??  I     3:23PM   0:00.50 amavisd (ch2-avail) (perl)
> vscan     24663  0.0  6.2 34012 32192  ??  I     3:23PM   0:00.86 amavisd (ch2-avail) (perl)
> vscan     24662  0.0  6.2 32952 31852  ??  Ss    3:23PM   0:01.19 amavisd (master) (perl)
> 
> -----------------
> 
> %cat /var/log/maillog | grep ClamAV | grep denied
> Oct 16 16:02:03 xxxxxxxx amavis[24664]: (24664-02) ask_av (ClamAV-clamd) FAILED - unexpected result: /var/amavis/tmp/amavis-20041016T160203-24664/parts: Access denied. ERROR\n
> %

Add clamav user into vsan group.

-- 
Mykola Dzham, LEFT-UANIC
JID: levsha@jabber.kiev.ua



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041019134442.GP67677>