[Samba] Veto files only at one location

Kevin Bailey kbailey at freewayprojects.com
Wed Mar 25 10:30:04 GMT 2009


Jeremy Allison wrote:
> On Tue, Mar 24, 2009 at 03:46:31PM +0000, Kevin Bailey wrote:
>   
>> This *must* be do-able!
>>
>> If I want to veto a single directory at the root of the users home  
>> directory
>>
>> i.e.
>>
>> /home/user/Maildir
>>
>> I can with
>>
>> veto files = /Maildir/
>>
>> However,  this prevents the user from being able to create  
>> directories/files with that name *anywhere* in the directory structure.
>>
>> Is there a way I can set 'veto files' to only veto one particular directory?
>>     
>
> No, that was never part of the design of the parameter, sorry.
> The code would need to be expanded to do regexp processing
> in order to do this. Possible, but no one has yet needed it.
>
> Jeremy.
>
>   

Thanks for the definitive reply.

If the user tries to create a directory (or file) with the vetoed name 
then they get an error from Windows.  The folder  looks like it has a 
name of 'New Folder' initially but this disappears when the view is 
refreshed.

So in other words - as it stops the user from being able to create a 
folder/file with that name it kinda fails safe.

Thanks - and well done for the column in Linux Format - always a good read.

Kevin


More information about the samba mailing list