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!

Accidently Chown "/". Urgent

Discussion in 'General Discussion' started by redsun2k, Jul 18, 2007.

  1. redsun2k

    redsun2k Registered

    Jan 10, 2007
    Likes Received:
    Trophy Points:
    I accident chown all my server "/" to one of the username.
    I type chown -R username:username /

    But i have pause it on the middle, half of my server file is chown to another username.
    I just restore the /home one by one. But now the problem is some file not yet restore.

    My server /dev also chown to another user, how to restore this?
    Is there any better solutions other than restore the OS?

    Please help...
  2. nyjimbo

    nyjimbo Well-Known Member

    Jan 25, 2003
    Likes Received:
    Trophy Points:
    New York
    If you did the chown to "/" then you likely have alot more than just "/dev" and "/home" messed up. Go to root "/" and do a "ls -l | more" to see what directories at that level show, if only dev and home show the new name then maybe you killed it before it progressed too deep, but I would drill down some directories to be sure.

    :( I hope you have good, full backups. Good luck.

    On another note, most people here seem to be doing "cpanel backups" but not full system backups. Everyone should keep in mind that the Cpanel backup does not backup the WHOLE system. If you lose your machine you would have to re-create a O/S loaded drive, the cpanel system and then restore your cpanel backups. If you do alot of custom work on your machine outside of the cpanel realm and do NOT do full system backups you are setting yourself up for a real disaster if you ever lose your hard drive.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 nyjimbo, Jul 18, 2007
    Last edited: Jul 18, 2007
  3. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    May 20, 2003
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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