Bug 1506319 - gluster mounted via NFS is that it does not respect the group write permissions
Summary: gluster mounted via NFS is that it does not respect the group write permissions
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: GlusterFS
Classification: Community
Component: nfs
Version: mainline
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-25 16:48 UTC by Steve Postma
Modified: 2020-03-12 12:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-12 12:41:55 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
Bug report info (268.74 KB, application/pdf)
2017-10-25 16:48 UTC, Steve Postma
no flags Details
gluster state dump (982.24 KB, application/zip)
2017-10-25 16:49 UTC, Steve Postma
no flags Details
access call that results in a failure (6.18 KB, text/plain)
2017-10-28 08:34 UTC, Niels de Vos
no flags Details

Description Steve Postma 2017-10-25 16:48:57 UTC
Created attachment 1343317 [details]
Bug report info

we have a common working directory dri_fleat in the gluster 
volume

drwxrwsr-x 22 root dri_fleat 4.0K May 1 15:14 dri_fleat

my user (phaley) does not own that directory but is a member of the 
group dri_fleat and should have write permissions. When I go to the 
nfs-mounted version and try to use the touch command I get the following

ibfdr-compute-0-4(dri_fleat)% touch dum
touch: cannot touch `dum': Permission denied

One of the sub-directories under dri_fleat is "test" which phaley owns

drwxrwsr-x 2 phaley dri_fleat 4.0K May 1 15:16 test

Under this directory (mounted via nfs) user phaley can write

ibfdr-compute-0-4(test)% touch dum
ibfdr-compute-0-4(test)%

I have put the packet captures in

http://mseas.mit.edu/download/phaley/GlusterUsers/TestNFSmount/

Comment 2 Steve Postma 2017-10-25 16:49:47 UTC
Created attachment 1343318 [details]
gluster state dump

Comment 3 Niels de Vos 2017-10-28 08:19:28 UTC
Hi Steve, could you pass along a little more details?

1. exact version of Gluster
      $ rpm -q glusterfs

2. count and numbers of the groups the user belongs to on the nfs-client
      $ id

3. count and numbers of the groups the user belongs to on a Gluster server
      $ id


You may also find a few more details about workarounds for environments where a user is part of many groups at http://docs.gluster.org/en/latest/Administrator%20Guide/Handling-of-users-with-many-groups/

Comment 4 Niels de Vos 2017-10-28 08:25:44 UTC
Also, the tcpdumps contain NFSv4 traffic. Gluster/NFS only supports NFSv3, so we need to know if you are using NFS-Ganesha or something else.

Thanks!

Comment 5 Niels de Vos 2017-10-28 08:34:50 UTC
Created attachment 1344642 [details]
access call that results in a failure

Gathered with:
  $ tshark -r capture_nfsfail.pcap -V frame.number==21651

This shows that the RPC credentials have a list of groups for the user with exactly 16 groups. This is the maximum of groups that the NFS protocol with AUTH_UNIX supports, the list may be trimmed. If the client does not pass the group-owner of the directory, the NFS-server will reply with "permission denied".

Comment 6 Steve Postma 2018-03-23 18:17:56 UTC
Niels,
we had 2 students (one a member of 8 groups, the other a member of 5 groups) each create a directory under /gdata/projects/nsf_alpha/Test (gluster mount).  Then they went to /mnt/mseas-data2_nfs/projects/nsf_alpha/Test/

    Neither was able to create a directory under a directory that they did NOT own (although group write was on and both were members of the relevant group)
    Both were able to create a directory under a directory that they DID own 

That's the same behavior we saw earlier.
Thanks!

Comment 7 Steve Postma 2018-06-04 15:00:15 UTC
Niels, is there any other info I could give you on this?
Thanks,
Steve

Comment 8 Niels de Vos 2018-06-04 15:09:42 UTC
Jiffin or Kaleb, can you have a look at this one?

Comment 10 Jiffin 2018-11-19 04:36:17 UTC
The bug was opened in downstream by mistake I guess. I am reopening the bug in upstream for the time being.

Comment 11 Worker Ant 2020-03-12 12:41:55 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/929, and will be tracked there from now on. Visit GitHub issues URL for further details


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