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.

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:
    1
    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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    650
    Trophy Points:
    113
    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.
     
Loading...
Similar Threads - Accidentally wiped root
  1. Okkunen
    Replies:
    2
    Views:
    108
  2. hekg
    Replies:
    6
    Views:
    313

Share This Page