<div dir="auto">It’s not just the nfs4_setfacl tool. Also cp and rsync will fail to cooy such ACLs. </div><div dir="auto"><br></div><div dir="auto">I have an RFE for this : </div><div dir="auto"><br><div dir="auto"><a href="https://ideas.ibm.com/ideas/GPFS-I-986">https://ideas.ibm.com/ideas/GPFS-I-986</a></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">  -jf</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">man. 26. feb. 2024 kl. 18:27 skrev Robert Horton <<a href="mailto:robert.horton@icr.ac.uk">robert.horton@icr.ac.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">





<div lang="EN-GB" link="#0563C1" vlink="#954F72" style="overflow-wrap: break-word;">
<div class="m_-8906745733501207188WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We’ve been using nfs4_get/setfacl to manage nfs4 acls as an alternative to the mm commands for a few months. It mostly works pretty well – in particular it’s simple to set permissions with inheritance flags recursively on a directory structure
 and it’s easy to add an ace for a user/group without affecting existing permissions.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We’ve noticed though that when permissions have been changed via SMB they get these DACL ACL flags set:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"># mmgetacl NewTest<u></u><u></u></p>
<p class="MsoNormal">#NFSv4 ACL<u></u><u></u></p>
<p class="MsoNormal">#owner:ICR\rhorton<u></u><u></u></p>
<p class="MsoNormal">#group:ICR\infotech<u></u><u></u></p>
<p class="MsoNormal">#ACL flags:<u></u><u></u></p>
<p class="MsoNormal">#  DACL_PRESENT<u></u><u></u></p>
<p class="MsoNormal">#  DACL_AUTO_INHERITED<u></u><u></u></p>
<p class="MsoNormal">#  SACL_AUTO_INHERITED<u></u><u></u></p>
<p class="MsoNormal">#  NULL_SACL<u></u><u></u></p>
<p class="MsoNormal">user:ICR\rhorton:r-x-:allow:FileInherit:DirInherit<u></u><u></u></p>
<p class="MsoNormal">(X)READ/LIST (-)WRITE/CREATE (-)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED<u></u><u></u></p>
<p class="MsoNormal">(-)DELETE    (-)DELETE_CHILD (-)CHOWN        (X)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">…which upsets nfs4_getfacl:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"># nfs4_getfacl NewTest<u></u><u></u></p>
<p class="MsoNormal"># file: NewTest<u></u><u></u></p>
<p class="MsoNormal">A::bin:C<u></u><u></u></p>
<p class="MsoNormal">Bad Ace Type:768<u></u><u></u></p>
<p class="MsoNormal">Error while printing ACE.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">It gets worse if someone does a nfs4_getfacl -R -a <new ace> as it sometimes ends up replacing the existing ACEs with one for a ‘bin’ user.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m guessing that with ACL flags present the presented system.nfs4_acl extended attribute isn’t in a form that nfs4-acl-tools expects..?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So…<u></u><u></u></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="m_-8906745733501207188MsoListParagraph" style="margin-left:0cm">What do the DACL flags actually do? Where are they stored? Is there a way to check for / modify them? I can see them referenced in
<a href="https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=users-authorizing-file-protocol" target="_blank">
https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=users-authorizing-file-protocol</a> but still not entirely clear. Is it possible to get the Samba gpfs module to not set them? I’m guessing not from
<a href="https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html" target="_blank">https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html</a><u></u><u></u></li><li class="m_-8906745733501207188MsoListParagraph" style="margin-left:0cm">Am I right in thinking this is a Scale bug? If so is it possible to get it fixed
<span style="font-family:"Segoe UI Emoji",sans-serif">😉</span> ?<u></u><u></u></li><li class="m_-8906745733501207188MsoListParagraph" style="margin-left:0cm">How do other people manage ACLs?<u></u><u></u></li></ol>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Background: It’s an ESS5000. Client access is via a remote mount to an HPC system, a large number of Windows/Mac/few Linux SMB clients and a handful of NFS (4) clients via CES. We’re on 5.1.9, although the cluster and fs versions are a
 bit behind. -k is nfs4.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any thoughts appreciated!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Rob<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="line-height:13.5pt"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(97,99,101)">Robert Horton</span></b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(97,99,101)">
 | Scientific Computing Infrastructure Lead<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(97,99,101)">The Institute of Cancer Research | <a href="https://www.google.com/maps/search/237+Fulham+Road,+London,+SW3+6JB?entry=gmail&source=g" style="font-family:Arial,sans-serif">237 Fulham Road, London, SW3 6JB</a><u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal" style="margin-top:7.5pt;line-height:13.5pt"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(97,99,101)">T</span></b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(97,99,101)">
 +44 (0) 20 7153 5350 | <b style="font-family:Arial,sans-serif">E</b> <a href="mailto:robert.horton@icr.ac.uk" target="_blank" style="font-family:Arial,sans-serif"><span style="border:1pt windowtext;padding:0cm;font-family:Arial,sans-serif;color:rgb(97,99,101)">robert.horton@icr.ac.uk</span></a> |
<b style="font-family:Arial,sans-serif">W</b> <a href="http://www.icr.ac.uk/" target="_blank" style="font-family:Arial,sans-serif"><span style="border:1pt windowtext;padding:0cm;font-family:Arial,sans-serif;color:rgb(97,99,101)">www.icr.ac.uk</span></a> |
<b style="font-family:Arial,sans-serif">Twitter</b> <a href="https://twitter.com/ICR_London" target="_blank" style="font-family:Arial,sans-serif"><span style="border:1pt windowtext;padding:0cm;font-family:Arial,sans-serif;color:rgb(97,99,101)">@ICR_London</span></a><u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal" style="line-height:13.5pt"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(97,99,101)">Facebook</span></b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(97,99,101)">
<a href="http://www.facebook.com/theinstituteofcancerresearch" target="_blank" style="font-family:Arial,sans-serif"><span style="border:1pt windowtext;padding:0cm;font-family:Arial,sans-serif;color:rgb(97,99,101)">www.facebook.com/theinstituteofcancerresearch</span></a><u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:18.75pt;margin-left:0cm">
<b><span style="font-size:10pt;font-family:"Times New Roman",serif;color:rgb(97,99,101)">Making the discoveries that defeat cancer<u style="font-family:"Times New Roman",serif"></u><u style="font-family:"Times New Roman",serif"></u></span></b></p>
<p class="MsoNormal"><a href="http://www.icr.ac.uk/" target="_blank"><span style="font-size:12pt;font-family:"Times New Roman",serif;text-decoration:none;color:blue"><img border="0" src="cid:ii_18de6a0336c1bff92041" alt="ICR Logo" style="width:207px;max-width:100%"></span></a><span style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(97,99,101)"><u style="font-family:"Times New Roman",serif"></u><u style="font-family:"Times New Roman",serif"></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p>The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at <a href="https://www.google.com/maps/search/123+Old+Brompton+Road,+London+SW7+3RP?entry=gmail&source=g">123 Old Brompton Road, London SW7 3RP</a>.
</p>
<p>This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
</p>
</div>

_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at <a href="http://gpfsug.org" rel="noreferrer" target="_blank">gpfsug.org</a><br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org" rel="noreferrer" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org</a><br>
</blockquote></div></div>