[Samba] disallowing copying files to the shares by extension

Mitch (WebCob) mitch at webcob.com
Thu Mar 3 08:52:59 GMT 2005


> hi,
> 
> Is it possible to filter files by their extensions for samba shares? For
> example no mp3 files can be coppied to the file server.
> 
> thanks..

[Mitch says:] I'm up late - so I'll give you an idea... there are options to
hide files, and I think to restrict access to hidden files - not sure if
they will prevent file creation, but they might prevent access once they
exist, then you could just do a :

 find /some/path -name "*.mp3" -exec rm {} \;

to get rid of them.

m/



More information about the samba mailing list