How to change file permissions

In order to change the permission of a file, the first thing you need to do is to login to your cPanel. From the main page, please select the File Manager icon. A new window will open, and the files and folders, contained in your web space will be listed in alphabetical order.

 

To change a file\'s permissions, please click on the file name. In the top right corner of the page a list of options will appear. When you click the Change Permissions link, this list will be substituted with a table with 9 checkboxes.

 

Checking/unchecking each of the boxes will allow/disallow a single user or a group to do one of the three actions possible – read (view) a file, write (modify), or execute it. To apply any modifications you need to click the Change button.

 

Changing the permission status will affect the number at the bottom of the table. If you would like to, you can also set the numbers by directly replacing them with the desired values. Please click the Change button to save your settings.

 

Upon completing the operation, cPanel will show a message similar to the one below to confirm changes have been saved.

 

Set permissions on file.txt -> 0644

 

/home/username/www

 

The message contains the name of the file that has been modified, the new permission set, and the system path on the hosting server.

 

Cactus Beach Technologies recommends that you do not change file permissions to 777 unless this is required for scripts already installed to function properly.

  • 40 Users Found This Useful
Was this answer helpful?

Related Articles

How do I access my cPanel?

You can get to your control panel by going to http://www.yourdomain.com/cpanel/ or...

How to create files and folders

In order to create a new folder from your File Manager, please go to your www folder and click...

How to create FTP accounts

To create a new FTP account from the cPanel, please click the FTP Manager icon. Select the FTP...

How to delete files and folders

It is easy to delete a file, but sometimes it is not what you would like to actually do. In order...

How to move and copy a file

Sometimes you need to move files from one directory to another, or would like to make a copy for...