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

Peng Yu pengyu.ut at gmail.com
Mon May 18 11:57:34 UTC 2015


On Monday, May 18, 2015, Niels de Vos <ndevos at redhat.com> wrote:

> 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


I tried this. But it still see the same error message when I call setfacl.
Also, setfacl works on directories in glusterfs servers.

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


-- 
Regards,
Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150518/713e8026/attachment.html>


More information about the Gluster-users mailing list