> Thanks for the reply. Yes, its pretty clear from your config info about how
> to set the permissions for the socket. But it still gets the 'root' in the
> group even after setting up with the configuration you suggested.

Have you tried this?
MilterSocketGroup clamav

> But there's no way for me to
> confirm this as I don't know how to pass the commands like
> PING,VERSION,SHUTDOWN etc. to the clamd that is mentioned in the clamav
> documentation. So my question is how to make sure if the clamav is setup
> correctly or not?

You can use nc (netcat), socat or any other tool to connect to a unix socket 
and issue a PING, VERSION, etc.

> If I do 'clamscan <file/directory>', it scans it
> properly. But when I do 'clamdscan <file/directories>', It says permission
> denied:(.

That may well be because you are scanning files that are not acccesible from 
the clamav user which the daemon is running.
Try using --stream to pass the whole file via stream to clamd.

# clamdscan root.file
root.file: lstat() failed: Permission denied. ERROR

----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.133 sec (0 m 0 s)

# clamdscan --stream root.file
root.file: OK

----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.065 sec (0 m 0 s)

Regards,
Carlos Velasco
_______________________________________________
clamav-users mailing list
clamav-users@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to