Bug 764762 (GLUSTER-3030) - non-root owned files/dirs not shown
Summary: non-root owned files/dirs not shown
Keywords:
Status: CLOSED WORKSFORME
Alias: GLUSTER-3030
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Pranith Kumar K
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-15 11:14 UTC by Pranith Kumar K
Modified: 2012-12-12 06:17 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.3.1, glusterfs-3.4.0qa4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-12 06:17:15 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Pranith Kumar K 2011-06-15 11:14:51 UTC
We use only fuse clients (we do export fuse-mounted volume via non-glusterfs nfs for the macs, please don't ask why)

Suppose we have ha user: user with group group (and additional groups group2)

If I create a directory:

test (with 0750) and user:group, everything is as expected.

If I now have:

directory (0750, someuser:group2)
directory/user1 (0700, someuser:group)
directory/user2 (0700, user:group2)
directory/user3 (0700, root:root)

then only "user3" is listed, when "user" does an ls

In contrast to the bug mentioned above, we have this problem with secondary groups if "directory" is owned by another group.

In our case: all users are in "group2" (a secondary group), their directories, user1,user2,... are all owned by username:primarygroup with 0700 only root can see the directories.

The same test case worked fine for me, opening a bug in case we can identify a variation of this procedure resulting in the bug.

Comment 1 Jeff Katcher 2011-07-28 19:44:00 UTC
I believe I'm seeing the same problem in a different way using 3.2.2 and in 3.1.1.

Specifically, one creates a directory owned by user A and belonging to group G.
With attributes set to 770, user A can enter, read and write this directory.
However, user B who is a member of group G (and G is not his primary group) is not allowed to enter the directory.

Please, please, please fix this problem.

Comment 2 Amar Tumballi 2012-12-12 06:17:15 UTC
Hi Jeff, we suspect it to be an issue with fuse's auxiliary group problem, which got fixed in some of the recent versions of gluster releases. please try 3.3.0+ version and see if its fixed now. We are not able to reproduce the issue any more with the current versions, and will be closing the bug as WORKSFORME, please re-open if it still doesn't work for you.


Note You need to log in before you can comment on or make changes to this bug.