Thursday, December 24, 2015

10.04 - Inaccessible Samba share with vscan-clamav

I have set up Samba with vscan-clamav and everything seems to be configured properly. However, when I try to access a Samba share from Windows I get the following error.



---------------------------
Open Folder

---------------------------
\\ is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

A device attached to the system is not functioning.

---------------------------
OK
---------------------------



When I comment out the following lines in smb.conf, I can access the shares but obviously the real-time virus scanning does not work.



vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vfs-config/vscan-clamav.conf


I have verified that clamav is running properly. I've also verified the following:



vscan-clamav.conf contains clamd socket name = /var/run/clamav/clamd.ctl which does exist.




The clamav user has ownership of the /var/run/clamav directory.



The clamav daemon is running.



What am I missing?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...