chmod 764
chmod 764 is rwxrw-r--.
What 764 grants
| Who | Digit | Permissions | Adds up as |
|---|---|---|---|
| Owner | 7 | read, write, execute | 4 + 2 + 1 = 7 |
| Group | 6 | read, write | 4 + 2 = 6 |
| Others | 4 | read | 4 = 4 |
When 764 is the right answer
Owner full, group read and write, others read. Sometimes seen on shared documents, though 664 is the more usual choice since the owner rarely needs the file to be executable.
The command
chmod 764 filename
chmod -R 764 directory/
Because the owner has the execute bit, this works on a directory as well as a file — on a directory, execute is what grants the right to enter it and reach the entries inside.
How it is written elsewhere
| Octal | 764 |
| Symbolic | rwxrw-r-- |
As a file in ls -l | -rwxrw-r-- |
As a directory in ls -l | drwxrw-r-- |
| Binary | 111 110 100 |
| World-writable | No |
Frequently asked questions
What does chmod 764 mean?
It sets owner to read, write, execute, group to read, write, others to read. In symbolic notation that is rwxrw-r--.
How do I apply 764?
Run chmod 764 filename. Add -R to apply it to a directory and everything inside, though be careful: a recursive numeric chmod marks every file the same way, which is rarely correct for a mixed tree of files and directories.
Is 764 safe?
It grants no write access outside the owner and the group, so it is a reasonable setting as long as the owner is the account you intend.
What is 764 in symbolic notation?
rwxrw-r--. Written as ls -l shows it, with a leading file-type character, an ordinary file would appear as -rwxrw-r-- and a directory as drwxrw-r--.