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.

bad permission with chown

Discussion in 'General Discussion' started by absfrm, Jul 23, 2016.

  1. absfrm

    absfrm Member

    Joined:
    Aug 29, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    in my SSH I have unfortunately done a command :

    #chown -R username:username /

    Now all permissions are wrong and sites under WHM's accounts just run with DSO (whi many errors) not suPHP.

    I run many cpanel scripts but did not work

    some commands I run :

    /scripts/enablefileprotect/
    /scripts/mailperm

    And I did

    #chown -R uername:username /home/username/public_html/
    #chown uername:nobody /home/username/public_html/

    what should I do? :(
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    326
    Likes Received:
    24
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    I'll preface this with it's my opinion but...

    I would make a backup and move to another server. You may have made yourself vulnerable to future exploits just fixing the permissions.

    Thanks/Sorry,
     
    twhiting9275 likes this.
  4. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Correct, move it all to another server. You've pretty much trashed this one . It can't be relied upon.
     
Loading...

Share This Page