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!

accidentally chown root directory to another name

Discussion in 'General Discussion' started by airdee, Jan 19, 2014.

  1. airdee

    airdee Registered

    Joined:
    Aug 26, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm linux newbie. I accidentally chown root (/) to another name and websites are now offline. I managed to bring all files and directory to "root" ownership recursively and /home accounts were also changed to their respective ownership name.

    After doing all these, the websites are still offline. I assumed not all system files ownership is named as root. My question is, is there a way to revert back (perhaps a linux command) the system files to their default ownership?

    I desperately need help. I searched google and no answer so far about about my case.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,755
    Likes Received:
    87
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    if all you did is chown newname.newname /


    then run
    chown root.root /

    & run /scripts/chownpublichtmls
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It sounds like you changed ownership for all files/directories on your system. While you may find some manual commands that you can run to help resolve the issue, it's really a better idea to install a new OS and complete a new installation of cPanel. Then, restore the accounts on the new server from backup, or by using the transfer option in Web Host Manager if you have no previous backups available.

    Thank you.
     
    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