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.

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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to rename a file

Sometimes you want to have a newer version of a file uploaded in your webspace, while keeping the...

How to create FTP accounts

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

Creating Backups

What are Backups?Backups allow you to download (to your computer) a zipped copy of either you...

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 do I password protect a directory?

You can password protect directories within your web site from unauthorized users by using "Web...

Powered by WHMCompleteSolution