|
This cPanel Flash Tutorial will show you how to change file or folder permissions using File Manager.
Permissions that are assigned to a file or folder determine the level of access a user can have to that file or folder. Below you can learn how to set file permissions for common file types and folders: web pages, Perl scripts, PHP scripts, images and folders. Incorrect permissions may be a reason for server error messages like "Forbidden" and "Internal Server Error". In File Manager, you can see and change all permissions in numeric format for files as well as folders.
Access permissions of files on UNIX (including Linux and other UNIX variants) machines tell the operating system how to deal with requests to access these files. There are 3 types of access:
- Read - Denoted by r and numeric value of 4 - user can read files and directory contents with this access.
- Write - Denoted by w and numeric value of 2 - user can change files or create / delete files in a folder.
- Execute - Denoted by x and numeric value of 1 - user can execute files or search directories.
Therefore, a number 7 for a user set indicates that the set has read, write as well as execute permission (4+2+1=7) Number 0 = No permission.
There are different types of user sets:
- User - The owner of the file. The user who creates a file automatically becomes its owner.
- Group - A set of users. All users of the group will have same set of permissions to the file.
- World - Someone who is not the owner or member of group the file belongs to. Basically everyone else.
|