setfacl -x u:$USER,g:nogroup $f
getfacl --omit-header $f |
- on linux-v5.0, there is no difference between ext4 and nfs3.
- on linux-v5.1-rc1, ext4 behaves same, but nfs3 doesn't show the "mask"
entry in the last output.
- removing user:$USER and group:nogroup entries looks "mask" entry gone
too.
J. R. Okajima
########################################
linux-v5.0
ext4
+ getfacl --omit-header fileA
+ tee /tmp/6311
user::rw-
group::r--
other::r--
+ setfacl -m u:jro:rx,g:nogroup:x fileA
+ getfacl --omit-header fileA
+ diff -u /tmp/6311 -
@@ -1,4 +1,7 @@
user::rw-
+user:jro:r-x
group::r--
+group:nogroup:--x
+mask::r-x
other::r--
+ setfacl -x u:jro,g:nogroup fileA
+ getfacl --omit-header fileA
+ diff -u /tmp/6311 -
@@ -1,4 +1,5 @@
user::rw-
group::r--
+mask::r--
other::r--
########################################
linux-v5.0
nfs3
+ getfacl --omit-header fileA
+ tee /tmp/6579
user::rw-
group::r--
other::r--
+ setfacl -m u:jro:rx,g:nogroup:x fileA
+ getfacl --omit-header fileA
+ diff -u /tmp/6579 -
@@ -1,4 +1,7 @@
user::rw-
+user:jro:r-x
group::r--
+group:nogroup:--x
+mask::r-x
other::r--
+ :
+ setfacl -x u:jro,g:nogroup fileA
+ getfacl --omit-header fileA
+ diff -u /tmp/6579 -
@@ -1,4 +1,5 @@
user::rw-
group::r--
+mask::r--
other::r--
########################################
linux-v5.1-rc1
ext4
+ f=fileA
+
+ getfacl --omit-header fileA
+ tee /tmp/2065
user::rw-
group::r--
other::r--
+ setfacl -m u:jro:rx,g:nogroup:x fileA
+ getfacl --omit-header fileA
+ diff -u /tmp/2065 -
@@ -1,4 +1,7 @@
user::rw-
+user:jro:r-x
group::r--
+group:nogroup:--x
+mask::r-x
other::r--
+ :
+ setfacl -x u:jro,g:nogroup fileA
+ getfacl --omit-header fileA
+ diff -u /tmp/2065 -
@@ -1,4 +1,5 @@
user::rw-
group::r--
+mask::r--
other::r--
########################################
linux-v5.1-rc1
nfs3
+ f=fileA
+
+ getfacl --omit-header fileA
+ tee /tmp/2351
user::rw-
group::r--
other::r--
+ setfacl -m u:jro:rx,g:nogroup:x fileA
+ getfacl --omit-header fileA
+ diff -u /tmp/2351 -
@@ -1,4 +1,7 @@
user::rw-
+user:jro:r-x
group::r--
+group:nogroup:--x
+mask::r-x
other::r--
By the commit for v5.1-rc1, ded52fbe7020 2019-02-20 nfs: fix xfstest generic/099 failed on nfsv3 NFSv3 stopped calling set_cached_acl(). And the behaviour changed. Is this intentional? Here is the example. (test script) f=fileA > $f getfacl --omit-header $f | tee $tmp setfacl -m u:$USER:rx,g:nogroup:x $f getfacl --omit-header $f | + : + setfacl -x u:jro,g:nogroup fileA + getfacl --omit-header fileA + diff -u /tmp/2351 - (there is no diff output)