|
CHMOD
Now for the other main cause of confusion for new users - file permissions or CHMOD.
I'm using the Matt's Guestbook files as an example, as the script is fairly simple and there is
only one directory and 4 files to worry about. The same principle works for more complex scripts
though.
Make your way to the directory or file that you wish to CHMOD...

... and highlight it:-

Right click on this file and a menu will pop up:-

Click on CHMOD
A small menu will pop up:-

The example here shows the settings for CHMOD 644 or
rw-r--r--
Please note that the settings displayed on this menu are the settings that will come into
effect, not the file's current settings. When you first start WS_FTP it will default to
644, after that it will remember the last settings used until you exit the program.
Scripts need to be set to 755 at Spaceports, so we would select Read, Write and
eXecute for the Owner, Read and eXecute for Group and Read and eXecute for Other:-

Clicking OK at this point would put those settings into effect.
For HTML or log files we would use either 777:-

or 666:-

To check that the settings have come into effect as intended, we would first hit the Refresh
button (on the Remote Host side) and then DirInfo.
All sorts of information will then show in a Notepad file. We are only interested in the file
permission settings though:-
755 is -rwxr-xr-x for a file and drwxr-xr-x
for a directory
666 is -rw-rw-rw- for a file and drw-rw-rw-
for a directory
777 is -rwxrwxrwx for a file and drwxrwxrwx
for a directory
The process is the same for both files and directories when setting the CHMOD. You can also
select multiple files and/or directories and change them all with the one command.

|