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.

Catastrophic problem after switching to suPHP

Discussion in 'General Discussion' started by konrath, Sep 2, 2010.

  1. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Hello

    After switching to suPHP many sites do not work correctly.

    Many files are 99:99 (nobody owns)

    All research I have done here in the forum to change ownership of files and folders are countered from administrators CPANEL stating that it is not safe.

    How can I solve this problem in mass?

    Thank you
    Konrath
     
  2. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    I see no problem with this command if my server is not
    compromised, if there symlinks for internal files of
    server. Iam wrong?


    for i in `ls /var/cpanel/users/`; do chown -R $i:$i /home/$i/public_html ; done

    Thank you
    Konrath
     
    #2 konrath, Sep 2, 2010
    Last edited: Sep 2, 2010
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,475
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  4. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil

    Yes, But I need to change the owners of files and folders.

    cpanelkenneth reports in this post ( http://forums.cpanel.net/f5/switching-suphp-160421.html and anothers ) that it is unsafe to change owner on recursive.

    I see no problems if my server is not compromised and if no there symlinks to internal files of server

    I'm scared to run the command and I am getting tons of complaints about the problem of ownership of files and folders.

    I'll run. Patience. I understand that only if there are symlinks can be problems.

    I need to resolve this problem.

    Thank you
    Konrath
     
    #4 konrath, Sep 2, 2010
    Last edited: Sep 2, 2010
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The danger isn't from symlinks, but from hard links. And it doesn't matter if your server is compromised; you simply need one malicious user.

    You should review what needs changed before making the change.
     
Loading...

Share This Page