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 wiped /root - now firewall is wonky

Discussion in 'General Discussion' started by -DeaDLocK-, Jul 14, 2015.

  1. -DeaDLocK-

    -DeaDLocK- Registered

    Joined:
    Sep 2, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    In an act of blind idiocy I accidentally ran rm -rf *.* while in the /root folder.

    I didn't think it would cause any major damage, but my firewall (CSF) suddenly started blocking all kinds of traffic on the server (including simple things like insecure FTP and outbound MySQL connections).

    1) Any ideas how I fix this, or restore defaults?
    2) Is there anything else in that folder I should try and restore?

    Thanks!
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I can't think of anything in /root itself that would be tied to CSF. You can perhaps try reinstalling CSF though and see if that fixes the issue. There isn't really anything critical in /root, however, the absence of the folder would prevent you from logging in. Also run a cPanel update, because cPanel stores certain data files in there, and an upcp should replace them.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,660
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may also want to compare the /root directory of a similar server to yours so you can determine which files you need to replace.

    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