Block certain file extensions on samba linux

Samba offers an option to block files with certain patterns, like file extensions. This option can be used to prevent dissemination of viruses or to disuade users from wasting space with certain files:

$ vim /etc/samba/smb.conf

comment = vishalvyas
Path = /home/vishal
public = yes
writable = yes
browseable = yes
read only = no
valid user = vishal
create mask = 0775
Veto files = /*.exe/*.com/*.dll/*.bat/*.vbs/*.tmp/*.mp3/*.avi/*.mp4/*.wmv/*.wma/

Vishal Vyas


  1. That is very interesting; you are a very skilled blogger. I have shared your website in my social networks..!

    Informatica Training in Chennai


Post a Comment