Hi

I have strange permission problem, and I think that error is in
clamdscan/clamd

I am running clamd under clamav user
clamav:x:398:398:Clam Antivirus:/var/clamav:/bin/false

I have added clamav to qmail group and clamd was restarted
----
[EMAIL PROTECTED] root]# ps -ef | grep clamd
clamav   31355     1  0 11:52 ?        00:00:00 clamd
clamav   31356 31355  0 11:52 ?        00:00:00 clamd
clamav   31357 31356  0 11:52 ?        00:00:00 clamd
[EMAIL PROTECTED] root]# su - clamav -s /bin/bash
bash-2.05a$ groups
clamav qmail



I have right read content of /var/spool/qmailscan/
----
bash-2.05a$ cd /var/spool/qmailscan/
bash-2.05a$ ls -l
celkem 860
drwxrwx---    5 qmailq   qmail        4096 zář  4 10:26 archive
-rw-rw----    1 qmailq   qmail      350749 zář  4 11:56 qmail-queue.log
-rw-rw----    1 qmailq   qmail      132496 zář  4 11:12
qmail-queue.log.1
-rw-------    1 qmailq   root           36 zář  4 10:28
qmail-scanner-queue-version.txt
drwxrwx---    5 qmailq   qmail        4096 zář  4 10:26 quarantine
-rw-r-----    1 qmailq   root        12288 zář  4 10:32
quarantine-attachments.db
-rw-rw----    1 qmailq   qmail        4273 zář  4 10:32
quarantine-attachments.txt
-rw-------    1 qmailq   nofiles    343334 zář  4 11:49 quarantine.log
drwxrwx---    5 qmailq   qmail        4096 zář  4 10:26 working

But when I try scan this directory I-m receiving permissions error.
[EMAIL PROTECTED] root]# clamdscan /var/spool/qmailscan
/var/spool/qmailscan: Can't access the file ERROR
 
----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.001 sec (0 m 0 s)


Where is problem? It seams that clamd don't work with supplementary
groups setting. It is BUG? How to solve it?

Pavel




-- 
Pavel Lisy <[EMAIL PROTECTED]>
T-MAPY spol. s r.o.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to