Permissions are important in website hosting. In your account, a file or a directory/folder has permissions that control who will be able to read, write, and execute it. When you create a file, its permissions are set to default. Typically, users don’t have to change permissions but there are instances when changes like updates and installation will require them to do some permission changes.
How do file permissions look like?
You can view and change file permissions using the cPanel File Manager. On the File Manager panel, you will see the permissions on the rightmost side. Permissions follow a three-digit format and each digit can range from 0 to 7, which we will talk about later.
What if the permissions were set wrong?
Erroneous file permissions can cause errors and even enable unauthorized users to hack into your website. If the latter happens, the files can be altered to make the site more exposed.
For example, a file that has a 777 permission can be read, written, and executed by the ‘world’. This is a rare case because, most of the time, websites have no good reason to give the world the ability to write and execute website files.
If you see files with mismatched permissions (not default), it’s best to change them back to the recommended permissions.
How to change the settings of a file permission?
Using the File Manager, you can do the following:
Rows: Read, Write, Execute
Columns: Owner, Group, World
You should only change file permissions if you really need to. Make sure that you won’t be allowing more access to your file when you actually want more restrictions.
What do the digits of the permissions mean?
The permission digits range from 0 to 7, with each digit representing the actions you allow each user to have.
Meanwhile, the arrangement of the three-digits corresponds to owner-group-world users.