Jimmy's weblog

Since you are my readers, and I have not been much of a traveller, I will not talk about people a thousand miles off, but come as near home as I can. As the time is short, I will leave out all the flattery, and retain all the criticism. — Henry David Thoreau

Stop Samba sharing Windows viruses

Wednesday August 27, 2003 15:19

For anyone using Samba to provide Windows file sharing, the following directives will help stop the spread of network share viruses.

# Don't allow access to any of the following files.
# Useful for preventing the spread of virus infections on your server
# should a Windows-connected client become infected.
# The last match bit prevents accessing files with a CLSID
# in its file extension
veto files = /*.exe/*.dll/*.com/*.vbs/*.{*}/

# You could uncomment the next line to use a more restrictive set of
# unallowed file extensions (see Microsoft KB 290497)
; veto files = /*.scr/*.scf/*.sct/*.pif/*.exe/*.bas/*.bat/*.com/*.ade/
*.adp/*.asp/*.asx/*.chm/*.cmd/*.cpl/*.crt/*.hta/*.hlp/*.inf/*.ins/
*.isp/*.js/*.jse/*.lnk/*.mda/*.mde/*.mdt/*.mdw/*.mdz/*.msc/*.msi/
*.msp/*.mst/*.ops/*.pcd/*.prf/*.reg/*/shb/*.shs/*.url/*.vb/
*.vbs/*.vbe/*.wsc/*.wsf/*.wsh/*.{*}/lost+found/

# Hide the following files; the client can still choose to alter
# their view settings to show hidden files.
hide files = /example.txt/*.ico/

This entry was posted on Wednesday, August 27th, 2003 at 15:52 and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>