Cpanel - Permission denied when trying to modify a file

laviolette99

Registered
Jul 7, 2011
2
0
51
I have a cpanel user that can access the file manager but can't modify-delete-move-rename any of the files.

How do I configure this account (in WHM?) to give these accesses to the cpanel users?


Thanks
 

Infopro

Well-Known Member
May 20, 2003
17,090
518
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Just a guess, but are the files this user wants to do anything with, part of a CMS or some sort? Example Joomla or Wordpress?

If yes, the user may no longer own those files if they did an upgrade, or added something via the CMS admin and the server is not running SuPHP.

You might login via FTP to check owner of the files or via SSH.
 

Infopro

Well-Known Member
May 20, 2003
17,090
518
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
No, you'd do that via SSH logged in as root to sort owner of files.

Something like this would work:

chown -R laviolet:laviolet /home/laviolet/public_html/wordpress

This would change owner of all files in /wordpress/ directory to user laviolet.

If you're unsure on how to do this, ask your host or hire a pro to help. You can make a mess if you do this to the wrong directory, or to the whole account.

Recompiling Apache to use SuPHP will end this sort of trouble for you in the future.

HTH!