CHMOD (change mode) is a command-line program that lets you change file attributes such as file permissions.
There are three types of permissions that can be configured for files and scripts.
Description | Explanation | Permission codes |
---|---|---|
Read permissions: | permission to read files | (r as in read) |
Write permissions: | permission to make changes to files | (w as in write) |
Execute permissions: | Permission to execute files (programs) | (x as in execute) |
Another way to use CHMOD is with numbers for assigning access permissions. Numbers in the octal system (0-7) are used for this.
Hoststar uses the following default permissions:
Directory | Permission codes | Octal system |
---|---|---|
Folder | rwx r-x r-x | 755 |
File | rw- r-- r-- | 644 |