Has been seen quite a few times. users save some such files on the network, which make no sense to use on the network or in the office. And consume space on the network. To prevent all this, we use the veto command in samba share network.
Open your samba conf file
/etc/samba/smb.conf
[root@xyz~]# vim /etc/samba/smb.conf
*
*
*
*
*
[eps$]
comment = File Server
path = /home/MainData/epsdata
read only = No
create mask = 0750
directory mask = 0750
valid user = deven
admin user = deven
veto files = /*.msi/*.exe/*.mp3/*.bat/*.com/*.dll/*.lnk/*.asd/*.shb/*.vb/*.wsf/*.wsh/*.pif/*.scr/*.chm/*.hta/*.shs/*.vbs/*.vbe/*.js/*.jse/*.wmv/*.3gp/*.avi/*.mp4/*.ini/*.inf/*.db/
delete veto files = yes
Add these lines as mentioned.
Now protect your samba share network as you want.
Open your samba conf file
/etc/samba/smb.conf
[root@xyz~]# vim /etc/samba/smb.conf
*
*
*
*
*
[eps$]
comment = File Server
path = /home/MainData/epsdata
read only = No
create mask = 0750
directory mask = 0750
valid user = deven
admin user = deven
veto files = /*.msi/*.exe/*.mp3/*.bat/*.com/*.dll/*.lnk/*.asd/*.shb/*.vb/*.wsf/*.wsh/*.pif/*.scr/*.chm/*.hta/*.shs/*.vbs/*.vbe/*.js/*.jse/*.wmv/*.3gp/*.avi/*.mp4/*.ini/*.inf/*.db/
delete veto files = yes
Add these lines as mentioned.
Now protect your samba share network as you want.
Comments