[Gluster-users] root needed for getfattr ?

Heiko Schröter schroete at iup.physik.uni-bremen.de
Fri Jan 16 19:01:30 UTC 2015


Version is 3.2.5.
But as far as i understand your mail there should be no rights 
restrictions on getfattr.

HD



Am 16.01.2015 um 00:20 schrieb Brad Hubbard:
> On 01/15/2015 10:43 PM, Heiko Schröter wrote:
>> Hello,
>>
>> a) do you need to have 'root' rights to request file attributes with
>> "getfattr" on a client mounted gluster file system ?
>>
>> b) was it at any time in history of gluster accesible by non-root
>> users ? (or was there a bug ?)
>>
>>
>> Reason for asking is that i have some users stating that it worked
>> "some days" ago for "normal" users but not now anymore.
>> The gluster version or setup has not been changed, also no changes to
>> the XFS brick file systems.
>> Version 3.2.5 (yep, i know it is old ...)
>> I couldnt find anything about getfattr rights issues in the docs.
>
> # mount localhost:big_dist_rep1 /mnt/
>
> # ls /mnt/
> upstream  upstream.tgz
>
> # stat /mnt/upstream.tgz
>    File: `/mnt/upstream.tgz'
>    Size: 1030758400      Blocks: 2010552    IO Block: 1048576 regular file
> Device: 1dh/29d Inode: 13061784644348572606  Links: 1
> Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
> Access: 2014-08-20 21:08:26.837540779 +0000
> Modify: 2014-08-15 04:17:27.000000000 +0000
> Change: 2014-08-15 04:37:43.656791859 +0000
>
> # su - fred
>
> $ getfattr -d -e hex -m. /mnt/upstream.tgz
> getfattr: Removing leading '/' from absolute path names
> # file: mnt/upstream.tgz
> system.posix_acl_access=0x0200000001000600ffffffff04000400ffffffff080004003000000010000400ffffffff20000400ffffffff
>
>
> $ logout
>
> # getfattr -d -e hex -m. /mnt/upstream.tgz
> getfattr: Removing leading '/' from absolute path names
> # file: mnt/upstream.tgz
> system.posix_acl_access=0x0200000001000600ffffffff04000400ffffffff080004003000000010000400ffffffff20000400ffffffff
>
>
> What version are you running and what does "stat" say about the file
> permissions?
>
>>
>>
>> Thks
>> Heiko
>>
>> _______________________________________________
>> Gluster-users mailing list
>> Gluster-users at gluster.org
>> http://www.gluster.org/mailman/listinfo/gluster-users
>
>



More information about the Gluster-users mailing list