Re: Problems with xattr / v2.1.6 Monterey (Intel)
Posted: Tue Dec 27, 2022 4:17 am
Setting the "hidden" flag
works as expected on directories and files on the ZFS pool, clearing the flag with "nohidden" too.
Trying to set the user immutable flag
is denied with "operation not permitted" even if called with "sudo" (no idea, if sudo makes any sense here at all...)
Now the interesting part:
Setting the system immutable flag works (sudo is mandatory here):
Clearing the flag with "noschg" also works as expected.
More interesting(?): if the system immutable flag is set, setting and clearing the "hidden" flag even works without sudo! But that seems to be a normal behavior: on APFS the "hidden" flag can be set and cleared if the system immutable flag is set, too. But in contrast to ZFS, setting and clearing the user immutable flag works on APFS (without "sudo") as expected.
Oh, by the way... my ZFS pool is set to "com.apple.mimic=apfs" but the "mount" command says it is "hfs". As I mentioned in an earlier post, changing "com.apple.mimic" to "hfs" has obviously no effect. At least, I can't see any...
The last thing I tried was to "unlock" a directory on the ZFS pool in Finder (Lock symbol in the lower right corner of the info-window):
but nothing happens. On APFS a dialog box opens, asking for the password. So maybe this phenomenon is also related to ACLs???
My acl settings are:
aclmode=discard
aclinherit=restricted
acltype=nfsv4
One more thing: owners are not ignored on any disk, including the ZFS pool and even
states: com.apple.ignoreowner=off (default)
So this might not be the reason, why setting the user immutable flag doesn't work. I'm clueless...
- Code: Select all
chflags hidden "directory"
works as expected on directories and files on the ZFS pool, clearing the flag with "nohidden" too.
Trying to set the user immutable flag
- Code: Select all
chflags uchg "directory"
is denied with "operation not permitted" even if called with "sudo" (no idea, if sudo makes any sense here at all...)
Now the interesting part:
Setting the system immutable flag works (sudo is mandatory here):
- Code: Select all
sudo chflags schg "directory"
Clearing the flag with "noschg" also works as expected.
More interesting(?): if the system immutable flag is set, setting and clearing the "hidden" flag even works without sudo! But that seems to be a normal behavior: on APFS the "hidden" flag can be set and cleared if the system immutable flag is set, too. But in contrast to ZFS, setting and clearing the user immutable flag works on APFS (without "sudo") as expected.
Oh, by the way... my ZFS pool is set to "com.apple.mimic=apfs" but the "mount" command says it is "hfs". As I mentioned in an earlier post, changing "com.apple.mimic" to "hfs" has obviously no effect. At least, I can't see any...
The last thing I tried was to "unlock" a directory on the ZFS pool in Finder (Lock symbol in the lower right corner of the info-window):
but nothing happens. On APFS a dialog box opens, asking for the password. So maybe this phenomenon is also related to ACLs???
My acl settings are:
aclmode=discard
aclinherit=restricted
acltype=nfsv4
One more thing: owners are not ignored on any disk, including the ZFS pool and even
- Code: Select all
zfs get all
states: com.apple.ignoreowner=off (default)
So this might not be the reason, why setting the user immutable flag doesn't work. I'm clueless...