Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
My server's been hacked EMERGENCY

My Linux machine has been hacked lately.

There are a few entires in /etc/inittab below the

#end of /etc/inittab

Something like:

#Loading standard ttys
0:2345:once:/usr/sbin/ttyload

I also have serveral of the following lines:

2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
.
.
.

I know that my /usr/sbin/ttyload has been hacked, and I have removed it, but I don't know if I need this is inittab, nor whether I had ttyload before. Is this file common?

Should I remove this line?

share|improve this question

marked as duplicate by Ward, ewwhite, MadHatter, Iain Oct 6 '12 at 19:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
As stated below, it's hard to find out how many backdoors ae left on your system. You should perform a clean system reinstall. –  ott-- Oct 6 '12 at 19:06

3 Answers 3

The lines with mingetty should stay there. In simple words, there are the number of console that you can access with ctrl+alt+f{1-6}. Usually the 7th is your graphical environment.

About ttyload, since it's not in your system you don't need that line.

share|improve this answer

That's there to reinfect the system on boot... Another part of rootkit extraction is that you're not safe until you've determined what backdoors or triggers exist to reinfect your system.

The rpm verify command I gave in your previous question also checks configuration files to show you what's changed from the package defaults.

rpm -vVa | grep 'S\.5\.\.\.\.\T' will output changed binaries and configuration files (denoted by a "c")

For example:

S.5....T  c /etc/httpd/conf/httpd.conf
S.5....T  c /etc/snmp/snmpd.conf

The "c" means that the config file changed. rpm -qf /path/to/file will show you the package that contains the file. You can either wipe or move the file and reinstall the rpm package to overwrite it.

share|improve this answer
up vote 0 down vote accepted

Yes, this line needs to be remove. It's a hacker's script that calls two infected files, etc...

More here.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.