Permissions
⌃A sets who may read, write and run what is selected: its owner, its group, and everyone else. It is Files › Info › Permissions… in the menu bar, and in the menu on a row too.
| Key | Action |
|---|---|
| ⌃A | Permissions… |
| ⌘I | Get Info |
What it acts on
- The marked rows, or the row under the cursor when nothing is marked.
- A link changes what it points to, as
chmoddoes. A link that points to nothing is asked about. - Get Info shows the permissions without changing them.
The boxes and the octal number
- Owner, Group, Others
- Read, Write and Execute for each. For a folder, Execute is permission to go into it.
- Special
- Set user ID, Set group ID and Sticky.
- Octal
- The same permissions as a number. Type three or four digits and every box follows; tick a box and
the number follows. It has four digits when a special bit is set —
2755.
The dialog opens on the octal field with its number chosen, so typing a new one replaces it. Change is the default: Enter changes the permissions, and does nothing until something would change.
Several that differ
- A box the selected items disagree about shows
[-], and leaves each of them as it is. - Set it and that one bit changes on all of them; the bits you did not touch stay as each has them.
Group Write set on a
644file and a600one makes them664and620. - Space on a
[-]box goes to ticked, unticked, and back to[-]. - The octal field is empty while any box shows
[-].
Inside folders
Also everything inside the folders is offered when a folder is selected, and changes everything under it as well, all the way down.
- Every box starts at
[-], because what is inside has not been looked at. A box you set is set on everything reached; the rest stay as each item has them. Typing an octal number sets every bit, aschmod -Rwould. - Files and Folders say which are changed — the selected ones included. Letting the owner write into every folder without touching a file is the owner’s Write with Folders alone.
- A link inside a folder is neither followed nor changed.
- A folder you could not look into, being given that permission, is changed before it is gone into, so everything in it is reached too.
When it cannot
- Only a file’s owner can change its permissions, and not while the file is locked. Anything that will not change is asked about in Could not change permissions: Try again (the default), Skip, Skip all or Stop.
- macOS may keep a set-ID bit as it was. The journal says what it kept.
- Changing a file’s owner or group is not something this does.
In the journal
Each item whose permissions changed is a step in the journal,
with them before and after — rw-r--r-- → rwxr-xr-x (644 → 755). Something that already had them
is not listed. A change could be set back for as long as the item still has the permissions it was
given.