Changing of file rights (CHMOD) on the webserver
While setting up Perl or PHP scripts on the web server you can experience that it is necessary to change the file access rights on some of the configuration files – this typically happens when installing scripts downloaded from the internet.
Normally you specify the file access rights directly from the command line on a Linux server, but can actually do it in most FTP client programs, although it is uncertain whether or not they are given in the form of numbers. In WS_FTP LE you can right click on a given file and choose “chmod(UNIX)” and then specify the read, write and execute rights.
The numbers used in CHMOD are used as described in the below list:
0: No rights
1: Execute
2: Write
3: Write/Execute
4: Read
5: Read/Execute
6: Read/Write
7: Read/Write/Execute
You give the rights in sections for user/owner, group and others – this means that a number of 755 means that:
7: User/owner has read, write and execute access (full).
5: Group has read and write access.
5: Others have read and write access.
Notice: It is very easy to lock yourself out with file access rights – if you for instance set a chmod of 000, 100 or 400. Then it is only the server administrator that can access the file or folder and to get access to the folder it is therefore necessary to call support.

