Linux Problems

Hi,

I made this script a long time ago which automates setting up ftps, subdomains etc. in cPanel, which I now give out for free and give free support for it. This one guy emailed me and sayd it didnt work, so he asked me to fix it. As the nice guy I am I always say yes to things like this and started working. Then I found out it was something wrong with the server, as I got the subdomains to be setup, but they wouldnt resolve for some reason.

I then found out that also hisdomain.com didnt work, but www.hisdomain.com worked. I told him this and he gave me root login to fix these things. For this I edited the httpd.conf and got this fixed. But still the subdomains wasn't working.

So.. I were having problems. Next I whent into #linux and #cpanel on irc, and requested help here. Here I met 2 guys that seemed to be very helpful.

They told me to do the following commands on the server;

for i in `find /`; do cat /dev/null > $i | grep hisdomain.com.db;

and

ifconfig eth0 down

Which I did.

First of all, let me tell you that I'm a really really newb to *nix. And yes, you dont have to say it, I've heard it many times; I shouldnt be a *nix admin at all.


Anyways, after I executed those 2 commands the box stopped working and responding at all.

Well, for the first command I just got a blank line, which I ctrl+c'ed out of pretty quick so it hopefully didnt work. The second disconnected me and I havent been able to connect to the box at all since then.
I already found out what the second command did, someone sayd it killed its network card(?).

So.. now I was pretty upset and was pretty mad at the 'helpful' people I met in IRC which told me to do this, although right after I was banned from there too so o'well not much I could do.


The thing is.. this isn't even my box! And I would hate to do any damage to it..
Although, the guy told me before he let me in its not THAT bad if I screw something, as its a small reinstall fee. But anyways I would hate telling him I ruined his box.. I don't really even know this guy and were just trying to be helpful :\


So, well, is there anything I can do to fix the eventual damages I have done?
And what exactly did those commands do?
The first one just gave a blank line which I quickly got out of, so not sure if that did any damage?

heh, anyone know how I can fix this?

I already asked the guy to tell the datacenter to reboot the box to see if it helps, although I havent seen it online yet. And this is about 3 hours since I did.

Anyone got any advices, things I could do to fix it or such?

I'd greatly apprecciate all replies I may get.. !

Thanks in advance for taking time reading all this anyways.

~urlguy

Edit: Oh, and I should mention.. its runnign RedHat and cPanel.

 

 

 

 

Top