chmod rocks! List of commands: - mkdir T - touch T/aap - chmod u-w T/aap - chmod u+w T/aap - touch T/aap Summary: chmod is able to remove 'write access', and reinstate it subsequently in contrast to setfacl @@ pwd /drv/e @@ mkdir T @@ touch T/aap @@ chmod u-w T/aap @@ chmod u+w T/aap @@ touch T/aap ----- same sequence of commands @@ pwd # bash NOT elevated /drv/e @@ mkdir T @@ touch T/aap @@ icacls T/aap T/aap Seven\Henri:(R,W,D,WDAC,WO) Seven\None:(R) Everyone:(R) Successfully processed 1 files; Failed processing 0 files @@ chmod u-w T/aap @@ icacls T/aap T/aap Seven\Henri:(R,D,WDAC,WO,WA) # <==== Note: lost W, but got WA in stead ... (setfacl fails here) Seven\None:(R) Everyone:(R) Successfully processed 1 files; Failed processing 0 files @@ chmod u+w T/aap @@ icacls T/aap T/aap Seven\Henri:(R,W,D,WDAC,WO) Seven\None:(R) Everyone:(R) Successfully processed 1 files; Failed processing 0 files @@ touch aap @@ ----- same sequence of commands, but now using Helge Klein's SetACL to diagnose - https://helgeklein.com/setacl @@ pwd /drv/e @@ mkdir T @@ touch T/aap @@ hk-getfacl.sh T/aap Privilege 'Back up files and directories' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. Privilege 'Restore files and directories' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. Privilege 'Take ownership of files or other objects' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. E://T/aap DACL(protected): Seven\Henri write+read+WRITE_OWNER+WRITE_DAC+DELETE allow no_inheritance Seven\None read allow no_inheritance Everyone read allow no_inheritance SetACL finished successfully. @@ chmod u-w T/aap @@ hk-getfacl.sh T/aap Privilege 'Back up files and directories' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. Privilege 'Restore files and directories' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. Privilege 'Take ownership of files or other objects' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. E://T/aap DACL(protected): Seven\Henri read+FILE_WRITE_ATTRIBUTES+WRITE_OWNER+WRITE_DAC+DELETE allow no_inheritance Seven\None read allow no_inheritance Everyone read allow no_inheritance Note: Seven\Henri: lost write, but got FILE_WRITE_ATTRIBUTES in stead ... (setfacl fails here) SetACL finished successfully. @@ chmod u+w T/aap @@ hk-getfacl.sh T/aap Privilege 'Back up files and directories' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. Privilege 'Restore files and directories' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. Privilege 'Take ownership of files or other objects' could not be enabled. SetACL's powers are restricted. Better run SetACL with admin rights. E://T/aap DACL(protected): Seven\Henri write+read+WRITE_OWNER+WRITE_DAC+DELETE allow no_inheritance Seven\None read allow no_inheritance Everyone read allow no_inheritance SetACL finished successfully. @@ touch T/aap @@ =====