Am 19.05.2017 um 03:36 schrieb Kishore Pawar:
Hi Reindl Harald 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. I don't know if that's how the clam-milter socket permission should be. By looking at the process I see that the 'clamd' is started. If I try to run clamd again, it says the socket is in use by another program and I think that is because the clamd instance is already running. When I kill all the processes and restart clamd, then it wont complain with the 'socket in use' message. So I think the clamav setup is good. 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? If I do 'clamscan <file/directory>', it scans it properly. But when I do 'clamdscan <file/directories>', It says permission denied:(
i have no idea about that old systems after switching to systemd many years ago but in other posts you are talking about /etc/rc.d/rc.local containing clamd related stuff
get rid of that nonsense - there is pretty sure at the same time a sysvinit service in /etc/rc.d/init.d/ enabled and services *for sure* don't belong in rc.local at all - that file should be just empty on any sane setup
# cat /etc/rc.d/rc.local #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local /usr/local/sbin/clamd /usr/local/sbin/clamav-milter /usr/local/bin/freshclam -d _______________________________________________ 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