FTP Wysardry
Using FTP Clients

How to set file permissions (CHMOD) in WS_FTP LE - with screenshots.



Home / FTP / WS_FTP Tutorial 6

Back | Next

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...

Guestbook files

... and highlight it:-

Highlighted file

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

File menu

Click on CHMOD

A small menu will pop up:-

Permissions 644

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:-

Permissions 755

Clicking OK at this point would put those settings into effect.

For HTML or log files we would use either 777:-

Permissions 777

or 666:-

Permissions 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.

Transfer complete. Goodbye

Site Menu

Bravenet

Section Menu


Copyright © 2000-2003 Wysardry

Most recently updated on 11 May, 2003

Home / FTP / WS_FTP Tutorial 6

Back | Next


Please feel free to contact us with any comments or suggestions
Using FTP Clients
FTP Wysardry

This site is hosted by Spaceports