Using setfacl vs. mmputacl
Hi folks, Experimenting with POSIX ACLs on GPFS 4.2 and noticed that the Linux command setfacl clears "c" permissions that were set with mmputacl. So if I have this: ... group:group1:rwxc mask::rwxc ... and I modify a different entry with: setfacl -m group:group2:r-x dirname then the "c" permissions above get cleared and I end up with ... group:group1:rwx- mask::rwx- ... I discovered that chmod does not clear the "c" mode. Is there any filesystem option to change this behavior to leave "c" modes in place? Steve Losen Research Computing University of Virginia scl@virginia.edu 434-924-0640
On 01/03/2021 12:45, Olaf Weiser wrote:
CAUTION: This email originated outside the University. Check before clicking links or attachments. Hallo Stephen, behavior ... or better to say ... predicted behavior for chmod and ACLs .. is not an easy thing or only , if you stay in either POSIX world or NFSv4 world to be POSIX compliant, a chmod overwrites ACLs
One might argue that the general rubbishness of the mmputacl cammand, and if a mmsetfacl command (or similar) existed it would negate messing with Linux utilities to change ACL's on GPFS file systems Only been bringing it up for over a decade now ;-) JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On 01/03/2021 15:18, Olaf Weiser wrote:
CAUTION: This email originated outside the University. Check before clicking links or attachments. JAB, yes-this is in argument ;-) ... and personally I like the idea of having smth like setfacl also for GPFS .. for years... *but* it would not take away the generic challenge , what to do, if there are competing standards / definitions to meet at least that is most likely just one reason, why there's no tool yet there are several hits on RFE page for "ACL".. some of them could be also addressed with a (mm)setfacl tool but I was not able to find a request for a tool itself (I quickly searched public but not found it there, maybe there is already one in private...) So - dependent on how important this item for others is ... its time to fire an RFE ?!? ...
Well when I asked I was told by an IBM representative that it was by design there was no proper way to set ACLs directly from Linux. The expectation was that you would do this over NFSv4 or Samba. So filing an RFE would be pointless under those conditions and I have never bothered as a result. This was pre 2012 so IBM's outlook might have changed in the meantime. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
participants (5)
-
Alexander Wolf -
Frederick Stock -
Jonathan Buzzard -
Losen, Stephen C (scl) -
Olaf Weiser
