3-digit:
644
ugo (user group other)
4-digit:
0644
?ugo (??? user group other)
What is the first octal digit for in 4-digit octal Unix file permission notation?
|
3-digit:
4-digit:
What is the first octal digit for in 4-digit octal Unix file permission notation? |
||||
|
|
|
From
What are "set user ID", "set group ID", and "sticky", you ask?
Also, when applied to a directory, the setuid/setgid cause new files created in the directory to inherit the uid or gid, respectively, of the parent directory. This behavior varies based upon the flavor of unix. For example, linux honors the setgid, but ignores the setuid on directories. And sticky:
|
||||
|
|
|
Setgid has another very important function that I rely on daily but which is not included in Handyman5's excerpt (the quote is from the same page linked above):
|
|||||
|
|
In addition to the other answers, a leading 0 is a convention used to tell a number is octal. It is not required here as file permissions are always expressed in octal but this can be anyway another reason why it is present. |
|||
|
|
|
Here is an easy to use Limux/Unix permissions calculator to help you figure out the permissions of a file or directory. |
|||||
|