Using mac's terrible file sharing prefs, I managed to goof up permissions on my Documents directory. My non-Documents directories have permissions like this:
drwx------+ for .
drwxr-xr-x+ for ..
-rw-------@ for .DS_Store
drwxr-xr-x for most folders
drwxr-xr-x@ for some folders
-rw-r--r-- for some files
-rw-r--r--@ for some files
My Documents directories have permissions like this:
drwx---r-x+ for .
drwx---r-x+ for ..
-rw----r--@ for .DS_Store
drwx---r-x+ for (all?) folders
-rw----r--@ for some files
-rw----r--+ for some files
It looks like everything that should have group read access is missing it. I realize that chmod can help, and that it has a -R recursive option, but I'm reluctant to start experimenting and mess things up more. In particular, I don't want to set group read in places where it shouldn't be there. Also, I want to change just some bits, leaving the others alone.
Can anyone provide advice about getting this fixed?
Not sure if it's relevant, but I got into this by trying to allow another user on the same machine read/write access to my main user's Documents. In sharing prefs, I tried adding the Documents folder to the list of shared folders and setting everyone to read (or at least read), but in the process, I think I deleted the "staff" group, whatever that is.
@
, that's just extended attributes. Runls -lae
to get the ACL information (indicated by+
) that might override regular Unix permissions (they probably shouldn't be there except maybe on the Documents folder itself). Default permissions are 700 for the Documents folder, 755 for all contained folders, and 644 for all contained files (and we can probably ignore execute permissions).staff
is the main group of all actual user accounts (as opposed to system internal users).