How to change permissions (chmod) of a file

Permissions can be very important when it comes to hosting your website. Permissions can allow our server computer to write and edit your files. Along with that, some files need to be protected from writing and editing, as a security measure. You can change your file permissions in many ways.

Using File Manager

One of the easy and basic ways to change the permissions is through File manager in cPanel. To change the permissions for a file or folder in cpanel, please do the following:

  1. Click File Manager
  2. Click the name of the file for which you would like to change the permissions.
  3. Select the Change Permissions link at the top right of the page.
  4. Select the permissions you would like to set for the file.
  5. Click Change Permissions

Using FTP

Connect to FTP. Go to the file and right click. Choose Permissions or Attributes or Properties (depends on your program).

Using SSH or a script

This can be done with chmod command.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

READ THIS BEFORE SETTING UP A SUBDOMAIN!

To create a subdomain, cPanel asks for the name you wish to use. MAKE SURE the subdomain name you...

READ THIS BEFORE SETTING UP AN ADDON DOMAIN!

Before you can add an addon domain you must change the name servers for the domain name to the...

What is the difference between shared SSL and private SSL?

A shared SSL displays as https://ip/~yourusername/. A private SSL would display as...

Apache mod_rewrite and examples

What is mod_rewrite? Mod Rewrite allows you to change the URL that everyone sees when they...

Backup policy, Do you provide backups?

You are responsible for your backups and web content. We create our own weekly backups on the...