[Samba] disallowing copying files to the shares by extension

Ulf Norén Ulf.Noren at miun.se
Thu Mar 3 10:28:52 GMT 2005


On Thursday 03 March 2005 09:52, Mitch (WebCob) wrote:
> > 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.
Check out
  veto files = /*.mp3/*.MP3/*.avi/*.AVI/

/Ulf

-- 
Ulf Norén
IT-avd, Mittuniversitetet
0660-57899,070-5142781

OBS! Den 1 januari 2005 blev Mitthögskolan Mittuniversitetet. 
Ny webbadress fr o m 050101: www.miun.se <http://www.miun.se/> 
Ny E-postadress fr o m 050101: ulf.noren at miun.se <mailto:ulf.noren at miun.se> 


More information about the samba mailing list