-1

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?

Enrico
  • 766
  • 8
  • 19
  • This is not a programming question. You should post on [sf], but check their help centre before posting. –  Jul 07 '14 at 02:02
  • It helped me hide pyc files programming with Python, but I understand your point. Related topic: http://stackoverflow.com/questions/154443/how-to-avoid-pyc-files – Enrico Jul 07 '14 at 12:21

1 Answers1

1

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!)

Enrico
  • 766
  • 8
  • 19