Re: [Samba] Hide the "not allowed to open" shared directories inthe client

2011-03-07 Thread Jeremy Allison
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.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Hide the "not allowed to open" shared directories inthe client

2011-03-06 Thread Eero Volotinen
2011/3/1 Allen Chen :
>
>>> hide unreadable = yes
>>> on global config
>>>
>>> This parameter is really good for my usage, it hides directories and
>>> files that user cannot access.
>>>
>>> --
>>> Eero,
>>> RHCE
>>
>> It works like a charm.
>> Thank you.
>>
> I found this post on the list, and it' not the solution for me.
> My questions is:
> Do we have a setting to hide files on samba share1 if the files' owner is
> not me?
> and, still I can read&write those files through samba share2.
> Samba share1 and share2 point to the same /path/folder.
>
> Thanks,
> Allen
>

Well, hide unreadable = yes and then use filesystem acls set correct permissions

--
Eero
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Hide the "not allowed to open" shared directories inthe client

2011-03-02 Thread Allen Chen

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

Thanks
Allen

Daniel Müller wrote:

What are you doing? If you can reach share1 then you can see the files. You
have the right to! Even if it is a group-share
then the single user owner doesn' t matter!?

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---
  

hide unreadable = yes
on global config

This parameter is really good for my usage, it hides directories and 
files that user cannot access.


--
Eero,
RHCE
  

It works like a charm.
Thank you.



I found this post on the list, and it' not the solution for me.
My questions is:
Do we have a setting to hide files on samba share1 if the files' owner 
is not me?

and, still I can read&write those files through samba share2.
Samba share1 and share2 point to the same /path/folder.

Thanks,
Allen
  


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Hide the "not allowed to open" shared directories inthe client

2011-03-02 Thread Daniel Müller
What are you doing? If you can reach share1 then you can see the files. You
have the right to! Even if it is a group-share
then the single user owner doesn' t matter!?

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---
-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Allen Chen
Gesendet: Dienstag, 1. März 2011 16:20
An: Emmanuel
Cc: samba@lists.samba.org; Eero Volotinen
Betreff: Re: [Samba] Hide the "not allowed to open" shared directories inthe
client


>> hide unreadable = yes
>> on global config
>>
>> This parameter is really good for my usage, it hides directories and 
>> files that user cannot access.
>>
>> -- 
>> Eero,
>> RHCE
>
> It works like a charm.
> Thank you.
>
I found this post on the list, and it' not the solution for me.
My questions is:
Do we have a setting to hide files on samba share1 if the files' owner 
is not me?
and, still I can read&write those files through samba share2.
Samba share1 and share2 point to the same /path/folder.

Thanks,
Allen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Hide the "not allowed to open" shared directories inthe client

2011-03-01 Thread Allen Chen



hide unreadable = yes
on global config

This parameter is really good for my usage, it hides directories and 
files that user cannot access.


--
Eero,
RHCE


It works like a charm.
Thank you.


I found this post on the list, and it' not the solution for me.
My questions is:
Do we have a setting to hide files on samba share1 if the files' owner 
is not me?

and, still I can read&write those files through samba share2.
Samba share1 and share2 point to the same /path/folder.

Thanks,
Allen
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba