I have a folder where it would help me if certain file types were not accessible by its samba users.
How can I do this?
In your smb.conf
, edit the share were you want to apply this and add this line to its properties:
veto files = /*.ext/
Where ext
is the extension you want to block.
If you want to block more than one extension, do so like this:
veto files = /*.bmp/*.jpg/*.png/*.gif/
In this example I used some image extensions, but you can use any extension you want.
(You can even block specific files!)