No, It must be
777 ...
The chmod command is used to change file permissions on files and folders. Each file has three different permission pieces:
1. What the owner of the file (in this case you) can do with it
2. What the other users in the file's group can do with it,
3. What the whole world (i.e. public access) can do with it.
Each permission piece is assigned a numeric value, and the combination of the three numbers in the order specified above (e.g. 755) is the whole permission information for the file.
Each number is determined by the same set of rules. The number for read access is 4, for write access is 2, and for execute access‡ is 1. To combine those permissions simply add the numbers. For example, if you want a file to have read and write access for one piece of the permission, it would be 4 + 2 = 6. No permissions at all is a zero, and full permissions (4 + 2 + 1) is a 7.
The two most common permission settings are 755 and 644. You've probably seen these before; this will explain them.
755
This means the owner of the file has a permission number of 7, other users in the file's group have a permission number of 5, and the world has a permission number of 5. Therefore, the owner can do absolutely anything with the file (4 + 2 + 1 = 7), and both those in the file's group and the rest of the world can read it and execute it (4 + 1 = 5). This is the required permission set required for CGI files in your cgi-bin folder. Also, these are the permissions necessary for folders inside your webspace if you want their contents to be visible at all, without being too loose and allowing write access to anyone besides you.
644
This means the owner of this file has a permission number of 6, other users in the file's group have an access number of 4, and the world has an access number of 4. Therefore, the owner can read and write the file (4 + 2 = 6), and both those in the file's group and those on the outside can only read it. This is the default for files that are uploaded to your webspace at Crosswinds, and is fine for almost all other files outside of CGI files.
Caveats: Permissions such as
666 and
777, which give full write access or full write and execute access to both those in the file's group, and to the world at large, are not permitted because they are a security risk. That last number especially should not be higher than a 5 for any reason. Also, it's a good idea to keep that first number a 6 or a 7, otherwise you may lock yourself out of being able to do anything with your own file because you won't have enough permissions!
To chmod a file in an FTP client:
1. Click the file to highlight it.
2. Right-click the file and choose "chmod or properties" (Depending on your FTP client, this may also be labelled something like "File Attributes" or "File Permissions".)
3. You will get a new window with checkboxes grouped by the type of permission as rows and the who gets that permission as columns, very similar to the grid shown in the cPanel File Manager. Fill in the checkboxes the same way as described above. The window may or may not show you the resulting numbers, depending on your own client software.
4. Click "OK."
The file will now have the permissions you filled in.
How To CHMOD file/folder(s) SmartFTP
How To Set Permissions With CuteFTP