How is the Documents folder locked to administrators?
How are user folders locked? If I log in as an admin, I find that the Documents folder for other users is locked. I can change the permissions using sudo, but it still does not give me access to the folder. I can view its contents with sudo, but not from the Finder. Get Info shows that everyone can read the folder, but in fact I, as admin, cannot. The access control list only prevents deleting, not reading. How is the "you have no access" indicated in the file system? (I am not trying to spy on my employees--this is a personal computer and I created several accounts for different roles.)
mikeliskissimac-2:bickis mikelisbickis$ ls -led Documents
drwx------+ 82 bickis staff 2624 10 Jun 2024 Documents
0: group:everyone deny delete
mikeliskissimac-2:bickis mikelisbickis$ chmod o+rx Documents
chmod: Unable to change file mode on Documents: Operation not permitted
mikeliskissimac-2:bickis mikelisbickis$ sudo chmod o+rx Documents
Password:
mikeliskissimac-2:bickis mikelisbickis$ ls -led Documents
drwx---r-x+ 82 bickis staff 2624 10 Jun 2024 Documents
0: group:everyone deny delete
mikeliskissimac-2:bickis mikelisbickis$ ls Documents
ls: Documents: Permission denied
These seems to be an inconsistency between the "everyone can read only" and "You have no access". What is going on?
I can get around this by always using sudo, but I am just wondering what is going on? Why does the directory supposedly allow everyone to read and execute, yet I cannot view it without using sudo?
I am running Monterey on 12.7.6 on a 2019 Intel iMac.
iMac 21.5″, macOS 12.7