[Samba] Hide the "not allowed to open" shared directories inthe client
jra at samba.org
Mon Mar 7 04:34:31 MST 2011
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.
More information about the samba