

|
 |
Changing File Permissions (chmod)
On this page:
chmod Overview
chmod (change mode) is a command that changes the access permissions (or modes) of a file or directory. The permissions determine who can read, change or execute a file.
Often CGI scripts will require that you specify certain permissions for files. The most common modes are listed below.
| Numer |
UNIX |
Permissions |
| 777 |
rwxrwxrwx |
|
Owner |
Group |
World |
| read |
Y |
Y |
Y |
| write |
Y |
Y |
Y |
| delete |
Y |
Y |
Y |
| 755 |
rwxr-xr-x |
|
Owner |
Group |
World |
| read |
Y |
Y |
Y |
| write |
Y |
N |
N |
| delete |
Y |
Y |
Y |
| 744 |
rwxr--r-- |
|
Owner |
Group |
World |
| read |
Y |
Y |
Y |
| write |
Y |
N |
N |
| delete |
Y |
N |
N |
| 644 |
rw-r--r-- |
|
Owner |
Group |
World |
| read |
Y |
Y |
Y |
| write |
Y |
N |
N |
| delete |
N |
N |
N |
TOP
chmod through the Command Line
- Access a command prompt by SSHing into your account. Instructions...
- Located the file you wish to chmod. Instructions...
- Enter the following into the command line:
chmod Number file_name
Number - Enter the permission number like 755. (Refer to the chart in the first section of this page.)
file_name - Enter the name of the file.
Example: (chmod 755)

TOP
chmod with WSFTP
- FTP into your account using WSFTP.
- Locate the file you wish to chmod in the directory in the right-hand side.
- Right-click on the file name and select chmod (UNIX).
Note:
As soon as you click on chmod (UNIX), the permissions will automatically change to the program default. You must set the permissions even if you just view the settings.

- Set the permissions for the file. (Refer to the chart in the first section of this page.)
Example: (chmod 755)

- Click OK.
TOP
|