Friday, July 19, 2013

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

[Vishal]
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/

Thanks,
Vishal Vyas

1 comment:


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


    Informatica Training in Chennai

    ReplyDelete

How to Install docker-compose CentOS7

 Install Docker-compose on CentOs7 Linux. yum install -y epel-release yum install -y python-pip pip install --upgrade pip pip install ...