The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cpanel - Permission denied when trying to modify a file

Discussion in 'General Discussion' started by laviolette99, Jul 7, 2011.

  1. laviolette99

    laviolette99 Registered

    Joined:
    Jul 7, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    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.
     
  3. laviolette99

    laviolette99 Registered

    Joined:
    Jul 7, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Infopro!

    Yep, files are from a Wordpress site.

    Can I change the ownership in WHM?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    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!
     
Loading...

Share This Page