Countless server-side scripts (PHP, CGI/Perl) are written for Apache on a Unix or Linux server. When rights need to be changed for the use of these scripts (on folders or files), the Chmod command (1) is often mentioned.
Chmod is a command to assign rights to files and/or folders on a Unix system. Rights can be assigned to (or taken away from) the user/owner of a folder or file, the group to which it belongs, or everyone (the “world”). The rights are often indicated by a total of four numbers (0-7), obtained by adding up the bit values 4, 2 and 1. Number values that are not used are assumed to be 0 and are placed in front of the number. The values 777 and 0777 are therefore equivalent. The numbers stand for:
- 4: read
- 2: write
- 1: execute
For example, the value (0)777 stands for read, write and execute for the owner, the “group” and everyone.
VEVIDA uses the Windows operating system, which has a completely different rights system (2). Rights can be set per user, which consist of:
- Read & Execute
- Full Control
For example, a hundred users can be set up for a folder, all with different rights. On our servers there are “only” two users:
- the FTP user (example.com)
- the anonymous internet visitor (the “IUSR”)
The FTP user has all the rights (full control). If write rights are assigned to a folder via MyVEVIDA, then “modify” rights are set for the IUSR. Files in the folder take over these rights; the files inherit the rights. When this is “translated” to the frequently used (and frequently mentioned) Unix chmod system, write rights are then set for “everyone”. For chmod, this is done with the bit-values 777, 666 and 755 and therefore these equivalents are also stated in MyVEVIDA. Note that you must use the backslash () as you are working at the directory level (for the ‘test’ directory on your website ‘wwwtest‘ must be filled in here).
If you encounter problems when changing rights on (sub) directories, always state exactly what (sub) directory this concerns, proceeding from the root directory (example.com).