Setting File Permissions
December 20, 1999
The table below displays the various file permissions. Permissions
are set for owner, group and everyone else respectively. That means
the first number in the set of 3 represents the owner, the second
represents the group and the last represents everyone else. Therefore,
if you need to change file permissions to say
Read, Write, Execute for owner and Read,
Execute for the group and everyone else you would
chmod 755 file-name.
| Number |
Representation |
Permissions |
| 0 |
--- |
No permission |
| 1 |
--x |
execute |
| 2 |
-w- |
write |
| 3 |
-wx |
write, execute |
| 4 |
r-- |
read |
| 5 |
r-x |
read, execute |
| 6 |
rw- |
read, write |
| 7 |
rwx |
read, write, execute |
All this is well and good, but what does it mean to you? Exactly
how do you accomplish all this? There are any number of
methods available depending on your OS and which programs you are
using. Basic instructions are provided for Windows/WS-FTP,
Macintosh/Fetch and UNIX/telnet below.
Windows/WS-FTP
- Right click in the right hand window
- Click on FTP Commands
- Click on Site
- Type chmod ### filename in the line provided.
Macintosh/Fetch
- Go to the Remote menu
- Go to Send FTP Commands
- Then type site chmod ### filename in the line provided.
UNIX/telnet
- cd into the directory the file is located.
- at the command prompt type:
- chmod nnn filename (where nnn represents the appropriate
numbers from the table above and filename is the name of your file).
|