This article describes how to use cPanel's File Manager to set permissions for your web site's files and directories.
All files and directories on Linux computers have access permissions that tell the operating system how to handle access requests. There are three basic access permissions:
These three access permissions are then set for three types of user groups:
You can determine the full permission settings for a file or directory by combining access permissions and access types. For example, a file with read and write permissions for the user has a permissions value of 6. (The read value of 4 plus the write value of 2 equals 6.) If that file also has read permissions for the group and the world, those permissions values are 4. So the file's total permissions value is represented numerically as 644.
A web server must be able to access your site's files in order to send them to a user's web browser. Therefore, your files must have the correct file permissions set for your web site to work properly.
The following tables show the correct permission settings for various file types on your web site:
All directories must be executable by others (the world). The correct file permissions setting is 755, and it is set automatically when you create a directory on your site. The following table shows these permission settings:
All CGI files (that is, all files in your cgi-bin directory) must be executable by others (the world). The correct file permissions setting is 755, but it is not set automatically when you upload CGI files to your site. You must change the file permissions for CGI files manually. The following table shows these permission settings:
To change the permissions for a file or directory, follow these steps:
If you are using the Paper Lantern theme, in the FILES section of the cPanel home page, click File Manager:
Click the Permissions icon:
Click the check boxes to set the correct permissions.
For more information about file permissions, please visit http://en.wikipedia.org/wiki/Filesystem_permissions#Traditional_Unix_permissions.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.