I want to segregate two home folders, /Users/justin
and /Users/anotherUser
such that one user cannot view the contents of the other.
My first attempt was to change the permissions of group everyone
for /Users/justin
from "Read only" (default) to "No Access", and similarly for "anotherUser".
But "anotherUser" can still read the contents of /Users/justin
. I think this is because both users are members of the staff
group.
➜ /Users ls -l
total 0
drwxrwxrwt 15 root wheel 480 2 May 09:51 Shared
drwxr-xr-x+ 14 altuser staff 448 20 Jun 13:24 altuser
drwxr-x---@ 86 justin staff 2752 20 Jun 17:56 justin
My understanding is that by default, macOS assigns all users to staff
.
How can I segregate the two home folders without removing them from staff
? Or is it safe to remove them from staff
?