-   Slackware (
-   -   Automatic virus scanning for Samba file server (

kikinovak 08-06-2013 11:04 AM

Automatic virus scanning for Samba file server

I've just installed a brand new HP Proliant server at a local radio station, running Slackware64 14.0, with NTP, DHCP, DNS, FTP and Samba services. Client machines are a mix of mostly Ubuntu 10.04 and 12.04, and Windows XP.

In the past, they've had problems with virus-infected USB sticks on the Windows machines, so they asked me if there was a possibility to have a special share on the file server that would act as a "virus security folder". The share would be regularly checked for viruses, so folks with a USB stick or disk or whatever should first upload their files to this special share on the server, and from there, they could be transferred to the Windows clients after a virus check.

Any suggestions for this?

TommyC7 08-06-2013 08:04 PM

ClamAV seems to be what you're looking for. It is a very featureful anti-virus project that can be used in various ways.

I personally would also use squid cache as well to assist since these files are being uploaded over the network. However, squid cache is quite an extensive program and may take quite some time to learn.

This sounds like a production server for a small to medium business, so for now I would just recommend ClamAV on it's own and then using squid cache if you feel you still need it.

kikinovak 08-07-2013 12:51 AM

Thanks for the advice. I'll look into ClamAV. I vaguely remember using it once on a client's infected Windows laptop, on a System Rescue LiveCD.

I forgot to mention the server is also running Squid in combination with SquidGuard for Internet filtering.

I didn't know I could also use it for virus scanning. I'll take a look into it.


descendant_command 08-07-2013 02:10 AM

Maybe a clamfs file system?

MadMaverick9 08-09-2013 09:34 PM
And here is something which already comes with Samba on Slackware:

man vfs_scannedonly
I haven't actually used any of these solutions. Please let us know if any of these work for you.

All times are GMT -5. The time now is 10:08 PM.