Re: clamdscan
Cristina Tanzi Tolenti <[email protected]>
| Newsgroups | gmane.mail.qmail.scanner |
|---|---|
| Message-ID | <[email protected]> |
> > Yeah, the solution is to have it correctly run as the clamav user. > Did you add clamav to the qscand group? Are the permissions of ALL > directories clamav uses owned by the clamav user (log files, database > directory, etc..)? > > -Jim > > > Yes, I add clamav to qscand group (usermod -Gqscand clamav) and yes the permission of all directories of clamav are owned by clamav [root@mail root]# ls -alt /var/log/clamav/ total 144 -rw-r----- 1 clamav clamav 7268 May 16 15:15 freshclam.log -rw-r----- 1 clamav clamav 124490 May 16 15:12 clamd.log drwxr-xr-x 2 clamav clamav 4096 May 15 15:55 . drwxr-xr-x 6 root root 4096 May 15 15:50 .. [root@mail root]# ls -alt /usr/local/share/clamav/ total 4500 drwxrwxr-x 2 clamav clamav 4096 May 16 12:15 . -rw-r--r-- 1 clamav clamav 638838 May 16 12:15 daily.cvd -rw-rw-r-- 1 clamav clamav 3950054 Apr 21 22:15 main.cvd drwxr-xr-x 5 root root 4096 Jun 28 2004 .. [root@mail root]# [root@mail root]# ls -alt /var/run/clamav/ total 12 drwxr-xr-x 2 clamav clamav 4096 May 16 15:20 . -rw-rw---- 1 clamav clamav 5 May 16 15:20 clamd.pid drwxr-xr-x 8 root root 4096 May 16 07:04 .. If I run clamd as qscand, clamdscan works perfectly so I think qmail-scanner 2.01_ST_ didn't Change setuid to 6755 -- ------------------------------------------------- Cristina Tanzi Tolenti CED - Provincia di Cremona C.so V.Emanuele II, 17 - 26100 Cremona tel. 0372/406362 e-mail [email protected] -------------------------------------------------