File
Permissions
When working
with files, scripts etc, there are times when you will need to modify
your file permissions.
The information
below hopefully will assist you with understanding what it all mean.
There is a shorthand
way of setting permissions by using octal numbers. Read permission
is given the value 4, write permission the value 2 and execute permission
1.
r w x
4 2 1
These values
are added together for any one user category:
1 = execute
only
2 = write only
3 = write and execute (1+2)
4 = read only
5 = read and execute (4+1)
6 = read and write (4+2)
7 = read and write and execute (4+2+1)
So access permissions
can be expressed as three digits. For example:
user group others
chmod 640 file1
rw- r-- ---
chmod 754 file1 rwx r-x r--
chmod 664 file1 rw- rw- r--
chmod 755 file1 rwx r-x r-x
chmod 644 file1 rw- r-- r--
Changing
File Permissions
1) Start WS_FTP
(or your favorite FTP client)
2) Locate the
file(s) you wish to modify the permissions on
3) Right-click
the file. Choose FTP command -> CHMOD (unix)
You will see
a dialog box such as this:-

4) Type in the
numeric value (if you know it), or select the required options.
Click OK. Most of the time, a cgi-script will require the permissions
to be set to 755, however your readme file or instructions will
indicate the appropriate permissions.
|