[Samba] disallowing copying files to the shares by extension

Erol YILDIZ erol.yildiz at hevokullari.k12.tr
Thu Mar 3 17:24:33 GMT 2005

hi again and thanks all suggestions,

i did veto to the home shares which provides roaming profiles inside. I
think roaming profiles doesn't simply copy the files to the server. If it
did like that there is no way to write the *.mp3 etc. files that I did  
I think the clients send roaming profile files in a different way to the

On Thu, 03 Mar 2005 08:24:23 -0600, Paul Gienger  
<pgienger at ae-solutions.com> wrote:

>> thanks for the help, now its not possible to copy .mp3 .avi etc files  
>> to the shares but, I have done this for the home directories of the  
>> users and we are using roaming profiles. If you try to copy .mp3 or  
>> .avi files its not possible. If you copy them to your desktop from  
>> somewhere and log out, because the profiles are roaming clients tries  
>> to write them to the server and succeed! How can this happen?!?
> Where did you put your veto files directive?  You need to do it on each  
> share you want to apply the restriction to.
>> 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

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

More information about the samba mailing list