<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">According to man page for setfacl: For&nbsp;uid&nbsp;and&nbsp;gid&nbsp;you can specify either a name or a number.</div><div class="">But actually the information will be stored in xattrs in the form of numbers, afaik.</div><div class=""><br class=""></div><div class="">One way to solve your problem is the consistent name/id mapping, which can be achieved by using directory servers like Free IPA, for example.</div><br class=""><div><blockquote type="cite" class=""><div class="">7 дек. 2016 г., в 16:59, Alexandr Porunov &lt;<a href="mailto:alexandr.porunov@gmail.com" class="">alexandr.porunov@gmail.com</a>&gt; написал(а):</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hello,<br class=""></div><div class=""><br class=""></div><div class="">I am trying to use ACLs but it seems that it doesn't recognize user names but user IDs.&nbsp;</div><div class="">I.e. I have 2 machines with next users: user1, user2.</div><div class="">On the first machine I have created users like this:</div><div class="">useradd user1</div><div class="">useradd user2</div><div class=""><br class=""></div><div class="">On the second machine I have created users like this:</div><div class="">useradd user2</div><div class="">useradd user1</div><div class=""><br class=""></div><div class="">Now I see id's of the users. Here is what I see:</div><div class=""><br class=""></div><div class="">Machine 1:</div><div class=""># id test1</div><div class="">uid=1002(test1) gid=1003(test1) groups=1003(test1)</div><div class=""># id test2</div><div class="">uid=1003(test2) gid=1004(test2) groups=1004(test2)</div><div class=""><br class=""></div><div class="">Machine 2:</div><div class=""># id test1</div><div class="">uid=1003(test1) gid=1004(test1) groups=1004(test1)</div><div class=""># id test2</div><div class="">uid=1002(test2) gid=1003(test2) groups=1003(test2)</div><div class=""><br class=""></div><div class="">So, on the machine1 test1 user has 1002 ID and on the machine2 test1 user has 1003</div><div class=""><br class=""></div><div class="">Now If on the machine1 I set a permission a on file like this:</div><div class="">setfacl -R -m u:test1:rwx /repositories/test</div><div class=""><br class=""></div><div class="">On the machine2 test1 user won't have any access to the file but the user test2 will! How to set permissions based on the user/group ID?</div><div class=""><br class=""></div><div class="">Here is how I mount a gluster volume:</div><div class="">mount -t glusterfs -o acl 192.168.0.120:/gv0 /repositories/</div><div class=""><br class=""></div><div class="">Sincerely,</div><div class="">Alexandr</div></div>
_______________________________________________<br class="">Gluster-users mailing list<br class=""><a href="mailto:Gluster-users@gluster.org" class="">Gluster-users@gluster.org</a><br class="">http://www.gluster.org/mailman/listinfo/gluster-users</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">Dmitry Glushenok</div><div class="">Jet Infosystems</div></div></div></div></div></div></div></div></div></div></div></div>
</div>

<br class=""></body></html>