File Permition
File Permition
• Symbol in the position 0 ("-")is the type of the file. It is either "d" if the item is a directory, or
"l" if it is a link, or "-" if the item is a regular file.
• Symbols in positions 1 to 3 ("rwx") are permissions for the owner of the file.
• Symbols in positions 4 to 6 ("r--") are permissions for the group.
• Symbols in positions 7 to 9 ("r--") are permissions for others.
r Read access is allowed
w Write access is allowed
x Execute access is allowed
- Replaces "r", "w" or "x" if according access type is denied
2.1.1. Examples
File,
owner has read, write, execute permissions,
-rwxr-xr-x
group: only read and execute permissions,
others: only read and execute permissions.
Directory,
dr-x------ owner has read and execute access,
group and others have no access
2.2.1. Examples
owner: read and write permissions,
644 group: only read permissions,
others: only read permissions.
owner: read, write and execute permissions,
755 group: read and execute permissions,
others: read and execute permissions.
7. Links
• Chmod command help and syntax