In cPanel File Manager you can set permissions for files. This means you can set who can read, write and execute a particular file. Sometimes you will need to change file permissions for script installations.
To change file permission in cPanel:
- Connect to your cPanel account
- Go to File Manager (FILES section)
- Navigate to the file (you can also select multiple files)
- Click the Permissions link from the top menu
- Select the desired file permission in the Change Permission window
- Click the Change Permissions button.
Some common values for file permissions are:
777 – anyone can read, write and execute the file
700 – owner can read, write and execute the file
666 – anyone can read and write the file
644 – anyone can read the file, only owner can write it
600 – only the owner can read and write the file
400 – no one can write the file; only owner can read the file
If you have SSH access to your account, you can change the file permissions by using the command:
root@web [/]# chmod 400 filename.php