[Samba] Hide the "not allowed to open" shared directoriesinthe client

Allen Chen achen at harbourfrontcentre.com
Tue Mar 8 11:37:13 MST 2011


Jeremy Allison wrote:
> On Wed, Mar 02, 2011 at 09:41:27AM -0500, Allen Chen wrote:
>   
>> I'm looking for a function from samba side:
>> I want to hide files if the owner is not me, though I have
>> read/write permissions on those files.
>> Can samba do this?
>>
>> Because samba can hide unreadable files, so is there a way to hide
>> files if the owner is not me?
>> it doesn't matter what kind of permissions are already setup on
>> those files(I don't want to change it),
>> something like in the samba share config:
>>  hide owner != %U
>>     
>
> You could do this with a Samba VFS module - that
> implements this by interposing itself in the
> readdir() call. I'm not planning to add another
> option for this - it's much easier to do it via
> a VFS module.
>
> Jeremy.
>   
Thanks Jeremy, I'll try what you suggest.

Allen


More information about the samba mailing list