WS_FTP - Chmod and Permission Strings |
||||||||||||||||||||||||||||||||
| Product: | Version: | Platform: | ||||||||||||||||||||||||||||||
| WS_FTP | 6+ | All | ||||||||||||||||||||||||||||||
Question/Problem: Can you explain
how the chmod permissions work? -rw-r--r-- 1 etracsvc other 1157 Jan 27 23:35 ericm.htm The first column of the print out are the permission strings. These tell the computer who may or may not have access to files. There are 3 groups of letters sequenced, rwx (that is rwxrwxrwx). Each of the 3 groups define permission parameters for different users. The first set pertains to the owner, the second to the group and the third to the world. What all this means is, if you give others permission to write to your files, your web page could get hacked. The letters pertain to specific characteristics: d = directory (all directories must have this) In the permission string above, index.html is defined as -rw-r--r--. This means that only the owner can read and write to the file. The group (other) may read the file but not write, and the world may read the file but not write. If you create a file but the permission string gets changed to a world writeable file you must change the permission string by using CHMOD. The table below shows some of the common chmod numbers: The command itself is: chmod [number] filename.
Note: CHMOD -- the functionality to change
permissions using a numeric |
||||||||||||||||||||||||||||||||
| Document #: | Revision Date: | |||||||||||||||||||||||||||||||
| WS-19990114-EM01 | 12/26/07 | |||||||||||||||||||||||||||||||