<br><br>On Monday, May 18, 2015, Niels de Vos <<a href="mailto:ndevos@redhat.com">ndevos@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, May 17, 2015 at 07:50:40PM -0500, Peng Yu wrote:<br>
> I see the glusterfs should support get/setfacl.<br>
><br>
> <a href="http://www.gluster.org/community/documentation/index.php/Gluster_3.2:_Setting_Access_ACLs" target="_blank">http://www.gluster.org/community/documentation/index.php/Gluster_3.2:_Setting_Access_ACLs</a><br>
><br>
> But when I try it, it says the following.<br>
><br>
> $ setfacl -m 'u:myuser:r-x' somedir<br>
> setfacl: somedir: Operation not supported<br>
><br>
> `/etc/fstab` has the mount /mnt/glusterfs, where somedir is.<br>
><br>
> rigel:/gv /mnt/glusterfs glusterfs defaults,_netdev 0 0<br>
><br>
> Does anybody know how to make get/setfacl available in glusterfs?<br>
<br>
You can enable support for ACLs with the "acl" mount option. In your<br>
/etc/fstab, you would have something like this:<br>
<br>
rigel:/gv /mnt/glusterfs glusterfs _netdev,acl 0 0</blockquote><div><br></div><div>I tried this. But it still see the same error message when I call setfacl. Also, setfacl works <span></span>on directories in glusterfs servers. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The "defaults" keyword really is not needed if you have any other<br>
options ;-)<br>
<br>
Cheers,<br>
Niels<br>
</blockquote><br><br>-- <br>Regards,<br>Peng<br>