[Samba] Reverse Veto Files - let's try again!

Charles Marcus CMarcus at Media-Brokers.com
Tue Aug 4 05:52:54 MDT 2009


On 8/3/2009, Jeremy Allison (jra at samba.org) wrote:
>> If you wanted to veto everything except jpeg files I imagine you
>> would not use the veto files directive at all and simply specify:
>>
>> Allowed Files = /*.jpg/
>> 
>> If you wanted to allow only jpeg files but not foo.jpg you would use Allowed Files and Veto Files:
>> 
>> Veto Files = /foo.jpg/
>> Allowed Files = /*.jpg/

> Yes, this is pretty much how I envisaged this working...

It would be much more flexible if the use of the ! as an exception
designator was allowed for both the Allow and Veto Files options, so for
the above, you could:

Allowed Files = !foo.jpg, *.jpg

-- 

Best regards,

Charles


More information about the samba mailing list