mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Check in Andreas Gruenbacher's nfs v4 acl tests into the xfstests suite.
Merge of master-melb:xfs-cmds:32058a by kenmcd. Run all the tests in xfstests/nfs4acl
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
$ mkdir d
|
||||
$ cd d
|
||||
|
||||
$ whoami
|
||||
> root
|
||||
|
||||
$ touch a
|
||||
|
||||
Neet to have write_acl permission to chmod or set the acl:
|
||||
$ su bin
|
||||
$ chmod 666 a
|
||||
> chmod: changing permissions of `a': Operation not permitted
|
||||
$ nfs4acl --set 'bin:rwM::allow' a
|
||||
> a: Operation not permitted
|
||||
|
||||
$ su
|
||||
$ nfs4acl --set 'bin:rwm::allow' a
|
||||
|
||||
Can set the acl now:
|
||||
$ su bin
|
||||
$ nfs4acl --set 'bin:rwm::allow' a
|
||||
|
||||
A chmod limits the permissions to the specified mode, which always disables
|
||||
write_acl:
|
||||
$ chmod 666 a
|
||||
$ nfs4acl --set 'bin:rwm::allow' a
|
||||
> a: Operation not permitted
|
||||
|
||||
$ su
|
||||
$ cd ..
|
||||
$ rm -rf d
|
||||
Reference in New Issue
Block a user