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.

Accidently Chown "/". Urgent

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

  1. redsun2k

    redsun2k Registered

    Joined:
    Jan 10, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    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.
     
    #2 nyjimbo, Jul 18, 2007
    Last edited: Jul 18, 2007
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,469
    Likes Received:
    197
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page