[Gluster-users] How to let glusterfs support getfacl and setfacl?

Niels de Vos ndevos at redhat.com
Mon May 18 06:38:18 UTC 2015


On Sun, May 17, 2015 at 07:50:40PM -0500, Peng Yu wrote:
> I see the glusterfs should support get/setfacl.
> 
> http://www.gluster.org/community/documentation/index.php/Gluster_3.2:_Setting_Access_ACLs
> 
> But when I try it, it says the following.
> 
> $ setfacl -m 'u:myuser:r-x' somedir
> setfacl: somedir: Operation not supported
> 
> `/etc/fstab` has the mount /mnt/glusterfs, where somedir is.
> 
> rigel:/gv /mnt/glusterfs glusterfs defaults,_netdev 0 0
> 
> Does anybody know how to make get/setfacl available in glusterfs?

You can enable support for ACLs with the "acl" mount option. In your
/etc/fstab, you would have something like this:

    rigel:/gv /mnt/glusterfs glusterfs _netdev,acl 0 0

The "defaults" keyword really is not needed if you have any other
options ;-)

Cheers,
Niels


More information about the Gluster-users mailing list