OK from the serv-u 1.6 (which is what my clients say is running here) help files:
-------------
SITE CHMOD
The "SITE Change Mode" command comes from UNIX where it is used to change access rights for files and directories. There is no direct equivalent in Windows, it has been added due to popular demand, even though it does not make a whole lot of sense in a Windows file system context. The syntax is:
SITE CHMOD <nnnn> <path/file>
In this <nnnn> is the permission code in octal format. First number is for setting IDs and is not supported by Serv-U, second number is for setting ‘owner’ permissions, third number is for setting ‘group’ permissions and not supported by Serv-U, fourth and last number is for setting ‘other’ permissions and not supported by Serv-U. The octal number format is:
4 = read permission
2 = write permission
1 = search/execute permission
For FTP clients that support the CHMOD command, you can change the file's ‘read-only’ and ‘hidden’ attributes. The server will only look at the ‘owner’ number of the CHMOD command (ie. ‘group’ and ‘other’ are ignored). To make a file read-only the ‘read’ bit has to be set while the ‘write’ bit has to be reset. For the command this means "SITE CHMOD 4xx file.txt" (with "xx" any value) or "SITE CHMOD 5xx file.txt". To remove the read-only attribute just set the "read" and "write" bits, ie. "SITE CHMOD 6xx file.txt". To set the hidden attribute of a file both the "read" and "write" bits need to be reset, ie. "SITE CHMOD 0xx file.txt". Directory listings reflect the file's attributes by showing "r--" for read-only files and "---" for hidden files.


Reply With Quote
Even though I have several years experince of *nix systems, I still stop and think carefully before executing chmod. 


Bookmarks