Hello, 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. We’ve noticed though that when permissions have been changed via SMB they get these DACL ACL flags set: # mmgetacl NewTest #NFSv4 ACL #owner:ICR\rhorton #group:ICR\infotech #ACL flags: # DACL_PRESENT # DACL_AUTO_INHERITED # SACL_AUTO_INHERITED # NULL_SACL user:ICR\rhorton:r-x-:allow:FileInherit:DirInherit (X)READ/LIST (-)WRITE/CREATE (-)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (X)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED …which upsets nfs4_getfacl: # nfs4_getfacl NewTest # file: NewTest A::bin:C Bad Ace Type:768 Error while printing ACE. 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. 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..? So… 1. 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 https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=users-authorizing-file... but still not entirely clear. Is it possible to get the Samba gpfs module to not set them? I’m guessing not from https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html 2. Am I right in thinking this is a Scale bug? If so is it possible to get it fixed 😉 ? 3. How do other people manage ACLs? 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. Any thoughts appreciated! Thanks, Rob Robert Horton | Scientific Computing Infrastructure Lead The Institute of Cancer Research | 237 Fulham Road, London, SW3 6JB T +44 (0) 20 7153 5350 | E robert.horton@icr.ac.uk<mailto:robert.horton@icr.ac.uk> | W www.icr.ac.uk<http://www.icr.ac.uk/> | Twitter @ICR_London<https://twitter.com/ICR_London> Facebook www.facebook.com/theinstituteofcancerresearch<http://www.facebook.com/theinstituteofcancerresearch> Making the discoveries that defeat cancer [ICR Logo]<http://www.icr.ac.uk/> 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 123 Old Brompton Road, London SW7 3RP. 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.
It’s not just the nfs4_setfacl tool. Also cp and rsync will fail to cooy such ACLs. I have an RFE for this : https://ideas.ibm.com/ideas/GPFS-I-986 -jf man. 26. feb. 2024 kl. 18:27 skrev Robert Horton <robert.horton@icr.ac.uk>:
Hello,
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.
We’ve noticed though that when permissions have been changed via SMB they get these DACL ACL flags set:
# mmgetacl NewTest
#NFSv4 ACL
#owner:ICR\rhorton
#group:ICR\infotech
#ACL flags:
# DACL_PRESENT
# DACL_AUTO_INHERITED
# SACL_AUTO_INHERITED
# NULL_SACL
user:ICR\rhorton:r-x-:allow:FileInherit:DirInherit
(X)READ/LIST (-)WRITE/CREATE (-)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED
(-)DELETE (-)DELETE_CHILD (-)CHOWN (X)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
…which upsets nfs4_getfacl:
# nfs4_getfacl NewTest
# file: NewTest
A::bin:C
Bad Ace Type:768
Error while printing ACE.
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.
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..?
So…
1. 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 https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=users-authorizing-file... but still not entirely clear. Is it possible to get the Samba gpfs module to not set them? I’m guessing not from https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html 2. Am I right in thinking this is a Scale bug? If so is it possible to get it fixed 😉 ? 3. How do other people manage ACLs?
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.
Any thoughts appreciated!
Thanks,
Rob
*Robert Horton* | Scientific Computing Infrastructure Lead
The Institute of Cancer Research | 237 Fulham Road, London, SW3 6JB <https://www.google.com/maps/search/237+Fulham+Road,+London,+SW3+6JB?entry=gm...>
*T* +44 (0) 20 7153 5350 | *E* robert.horton@icr.ac.uk | *W* www.icr.ac.uk | *Twitter* @ICR_London <https://twitter.com/ICR_London>
*Facebook* www.facebook.com/theinstituteofcancerresearch
*Making the discoveries that defeat cancer*
[image: ICR Logo] <http://www.icr.ac.uk/>
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 123 Old Brompton Road, London SW7 3RP <https://www.google.com/maps/search/123+Old+Brompton+Road,+London+SW7+3RP?ent...>.
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. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
When ACLs contain the DACL/SACL flags, nfs4_getfacl producing incorrect/unexpected output is a known problem. This is because the nfs4-acl-tools manage DACL and SACL via the extended attributes system.nfs4_dacl and system.nfs4_sacl, respectively. The system.nfs4_acl attribute, which Scale currently supports, only expect NFSv4 ACLs without such flags. There are two issues in Scale with system.nfs4_acl: mmxcp accesses the system.nfs4_acl attribute, which does not expose the ACL flags. On the other hand, the nfs4-acl-tools access the system.nfs4_acl attribute and that does not present ACL with the ACL flags set correctly. In Scale, the ACL flags are stored as another field in the ACL data structure that results in a different ACL header length compared to a regular NFSv4 ACL without the flags. When modifying ACLs via Samba/SMB/Windows, the ACL flags are always set. If one wants to clear those ACL flags, mmputacl or nfs4_setfacl -S can be performed. A future Scale release is under consideration to address this gap with the ACL flags. If there are mixed OS environments (e.g Windows and Linux) and data is exported for SMB clients, it is recommended to manage ACLs from a Windows client. https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=users-working-acls Anh Dao Storage Scale Developer adao@ibm.com From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Jan-Frode Myklebust <janfrode@tanso.net> Date: Monday, February 26, 2024 at 11:19 AM To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Subject: [EXTERNAL] Re: [gpfsug-discuss] DACLs and nfs4-acl-tools It’s not just the nfs4_setfacl tool. Also cp and rsync will fail to cooy such ACLs. I have an RFE for this : https: //ideas. ibm. com/ideas/GPFS-I-986 -jf man. 26. feb. 2024 kl. 18: 27 skrev Robert Horton <robert. horton@ icr. ac. uk>: Hello, ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. Report Suspicious <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/PjiDSg!12-vrJF3prOyMQvwNA4NT...> ZjQcmQRYFpfptBannerEnd It’s not just the nfs4_setfacl tool. Also cp and rsync will fail to cooy such ACLs. I have an RFE for this : https://ideas.ibm.com/ideas/GPFS-I-986 -jf man. 26. feb. 2024 kl. 18:27 skrev Robert Horton <robert.horton@icr.ac.uk<mailto:robert.horton@icr.ac.uk>>: Hello, 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. We’ve noticed though that when permissions have been changed via SMB they get these DACL ACL flags set: # mmgetacl NewTest #NFSv4 ACL #owner:ICR\rhorton #group:ICR\infotech #ACL flags: # DACL_PRESENT # DACL_AUTO_INHERITED # SACL_AUTO_INHERITED # NULL_SACL user:ICR\rhorton:r-x-:allow:FileInherit:DirInherit (X)READ/LIST (-)WRITE/CREATE (-)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (X)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED …which upsets nfs4_getfacl: # nfs4_getfacl NewTest # file: NewTest A::bin:C Bad Ace Type:768 Error while printing ACE. 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. 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..? So… 1. 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 https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=users-authorizing-file... but still not entirely clear. Is it possible to get the Samba gpfs module to not set them? I’m guessing not from https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html<https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html> 2. Am I right in thinking this is a Scale bug? If so is it possible to get it fixed 😉 ? 3. How do other people manage ACLs? 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. Any thoughts appreciated! Thanks, Rob Robert Horton | Scientific Computing Infrastructure Lead The Institute of Cancer Research | 237 Fulham Road, London, SW3 6JB<https://www.google.com/maps/search/237+Fulham+Road,+London,+SW3+6JB?entry=gm...> T +44 (0) 20 7153 5350 | E robert.horton@icr.ac.uk<mailto:robert.horton@icr.ac.uk> | W www.icr.ac.uk<http://www.icr.ac.uk/> | Twitter @ICR_London<https://twitter.com/ICR_London> Facebook www.facebook.com/theinstituteofcancerresearch<http://www.facebook.com/theinstituteofcancerresearch> Making the discoveries that defeat cancer [ICR Logo]<http://www.icr.ac.uk/> 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 123 Old Brompton Road, London SW7 3RP<https://www.google.com/maps/search/123+Old+Brompton+Road,+London+SW7+3RP?ent...>. 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. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org<http://gpfsug.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org<http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org>
On 26/02/2024 18:16, Jan-Frode Myklebust wrote:
It’s not just the nfs4_setfacl tool. Also cp and rsync will fail to cooy such ACLs.
I have an RFE for this :
https://ideas.ibm.com/ideas/GPFS-I-986 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fideas.ibm....>
At this point in time requests for being able to recursively set NFSv4 ACL's on GPFS are over 12 years old. At least that would be about the time frame for requests for the feature made by myself. Unfortunately I think the chances of IBM doing anything about it is somewhere around ħ Shame really as it would not be particularly hard to do. I have an old proof of concept that uses the FreeBSD tool (mainly of licensing reasons). Basically it transforms the GPFS ACL to the storage format used by the FreeBSD tool. Just needs refactoring to use the GPFS ACL storage format throughout. Probably about a weeks developer effort. There are some poorly publicly documented features of the GPFS ACL format that make me reluctant to release my code in case it chews someone's filesystem. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On 26/02/2024 22:21, Jonathan Buzzard wrote:
CAUTION: This email originated outside the University. Check before clicking links or attachments.
On 26/02/2024 18:16, Jan-Frode Myklebust wrote:
It’s not just the nfs4_setfacl tool. Also cp and rsync will fail to cooy such ACLs.
I have an RFE for this :
https://ideas.ibm.com/ideas/GPFS-I-986 <https://ideas.ibm.com/ideas/GPFS-I-986>
At this point in time requests for being able to recursively set NFSv4 ACL's on GPFS are over 12 years old. At least that would be about the time frame for requests for the feature made by myself.
Unfortunately I think the chances of IBM doing anything about it is somewhere around ħ
Shame really as it would not be particularly hard to do. I have an old proof of concept that uses the FreeBSD tool (mainly of licensing reasons). Basically it transforms the GPFS ACL to the storage format used by the FreeBSD tool. Just needs refactoring to use the GPFS ACL storage format throughout. Probably about a weeks developer effort.
There are some poorly publicly documented features of the GPFS ACL format that make me reluctant to release my code in case it chews someone's filesystem.
Looks like IBM might have actually delivered it as a feature https://ibm-sys-storage.ideas.ibm.com/ideas/GPFS-I-695 In summary The version of chmod linked below fully supports the manipulation of NFSv4 ACLs. This is the version that Isilon OneFS uses and it's fantastic. I can add/remove Active Directory users and groups, modify permissions, add ACL control flags, etc., all without ever touching a Windows computer. https://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=... Can this work on GPFS? It is marked as delivered in Scale 5.1.7 in September of last year. Though I have not the foggiest how you use it and can't find any mention in the command reference for 5.1.9 JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On Mon, 2024-02-26 at 23:15 +0000, Jonathan Buzzard wrote:
Looks like IBM might have actually delivered it as a feature
Scale 5.1.7 delivered the ability to use the Linux nfs4-acl-tools for managing ACLs: https://www.ibm.com/docs/en/storage-scale/5.1.7?topic=summary-changes "Support for setting the extended system.nfs4_acl attribute" I assume that since that servces the same goal of modifying NFSv4 ACLs, the RFE has been marked as delivered with that release. Regards, Christof
participants (5)
-
Christof Schmitt -
Jan-Frode Myklebust -
Jonathan Buzzard -
Robert Horton -
scale
