Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

permission issue

Discussion in 'General Discussion' started by greenba, Aug 28, 2008.

  1. greenba

    greenba Member

    Joined:
    Dec 3, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Bosnia and Herzegowina
    Hello,

    Every file or folder that has been created by a PHP script ran from the browser creates a folder/file where the owner is nobody, so latter when the owner wants to edit/delete the folder/file he does not have permissions to do so.

    I am running 11.23.6-RELEASE on Centos 5, this is the case for every user on the machine.

    phpsuexec is off.

    Any ideas on how to fix this issue?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,437
    Likes Received:
    416
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Running these commands as root should fix this.


    Code:
    
    for CPAccess in `ls -A /var/cpanel/users`; do chown -R $CPAccess:$CPAccess /home/$CPAccess; done
    
    for CPAccess in `ls -A /var/cpanel/users`; do chown -R $CPAccess:mail /home/$CPAccess/etc /home/$CPAccess/mail; done
    
    for CPAccess in `ls -A /var/cpanel/users`; do chown -R $CPAccess:nobody /home/$CPAccess/public_html; done
    

    You really should consider upgrading apache and adding SuPHP. THen you won't have this problem.

    Lots of threads on this topic on these forums. Lots of them. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice