Add file type restriction in windows share

Status
Not open for further replies.

sujith

Cadet
Joined
Jan 7, 2012
Messages
1
anybody please help me how to Add file type restriction in windows share of FreeNAS

ie; prevent a particular file extension like .exe or .bat is to be copied in to the share

thanks
Sujith
 

leenux_tux

Patron
Joined
Sep 3, 2011
Messages
238
Hide a file once it's on the file system ??

Not sure if this would help at all.............

Apparently it's possible to hide files of specific types using the samba configuration file, please see this "http://www.samba.org/samba/docs/using_samba/ch08.html".

If I am reading it correctly you can hide (for example) .exe files and .bat files. The user could still copy them (not really what you were looking for I know) but they would not be visible. It would then be possible (using CRON) to run a script to clean up (delete) files you don't want on the server ??
 
Status
Not open for further replies.
Top