Bug 763790 (GLUSTER-2058) - posix permission compliance error
Summary: posix permission compliance error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2058
Product: GlusterFS
Classification: Community
Component: distribute
Version: 3.1.0
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Anand Avati
QA Contact:
URL:
Whiteboard:
: GLUSTER-2046 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-05 01:20 UTC by Allen Lu
Modified: 2015-12-01 16:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: nfs
Documentation: DNR
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Allen Lu 2010-11-05 01:20:52 UTC
A user file with following permission is not allowed to be copied to GlusterFS based directory with permission of 755.

Create a user file with permission of 400. cp the file to a directory created by the same user based on GlusterFS. Permission is denied. The same steps works fine on pure ext3.

 [root@cacfs01 ~]# ls -l /tmp/inst_doc.pdf
-r-------- 1 shl1 Domain Users 589462 Nov 4 15:04 /tmp/inst_doc.pdf


[root@cacfs01 ~]# ls -ld /export/glusterfs/shl1/
drwxr-xr-x 30 shl1 Domain Users 24576 Nov 4 15:04 /export/glusterfs/shl1/


---

As user shl1, when I try to copy /tmp/inst_doc into gluster volume:

--
-sh-3.2$ whoami
shl1
-sh-3.2$ pwd
/export/glusterfs/shl1
-sh-3.2$ cp /tmp/inst_doc.pdf /export/glusterfs/shl1
cp: writing `/export/glusterfs/shl1/inst_doc.pdf': Permission denied
cp: closing `/export/glusterfs/shl1/inst_doc.pdf': Permission denied
-sh-3.2$ ls -l
total 0
-r-------- 1 shl1 Domain Users 0 Nov 4 15:08 inst_doc.pdf
--

Comment 1 Anand Avati 2010-11-08 07:08:35 UTC
PATCH: http://patches.gluster.com/patch/5643 in master (access-control: Allow Writes/Reads to proceed without perm checks)

Comment 2 Shehjar Tikoo 2010-11-09 09:05:35 UTC
Fixed. Problem was in access-control, not in distribute.

Comment 3 Raghavendra G 2010-12-13 00:25:17 UTC
*** Bug 2046 has been marked as a duplicate of this bug. ***

Comment 4 Amar Tumballi 2011-03-22 07:01:50 UTC
Access control issues are already documented.. and the enhancements are internal.


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