Accidentally wiped /root - now firewall is wonky

-DeaDLocK-

Registered
Sep 2, 2011
2
0
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!
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
833
28
178
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
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.
 
Thread starter Similar threads Forum Replies Date
Sujoy Dhar Security 1