Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i find out who is running tar as nobody using 99.9% of the cpu 1

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
US
how do i find out who is running tar as nobody using 99.9% of the cpu?

This has crashed my server 3 times already, it runs for hours at 99.9% and I cant find out whois running it because it runs a nobody
 
Hi farley99,

is there a account named "nobody" or what? If so, whom does it belong to?

Greetings

Smash your head on keyboard to continue...
 
It may be that /bin/tar got corrupted some how. You may try to replace it or rename it to see what process complains about not finding it. Do your system logs tell you anything?
 
Whats your setup .... are you running NFS (there is a default nobody account for NFS if I remember correctly ... thats why we never setup Apache with nobody as the User ... Do we? ...)

do a netstat -a to see what/who is connected to your ftp port ... look for:
tcp 0 0 yourhost:ftp-data remoteIP:portNo ESTABLISHED

Good Luck.
Laurie.
 
I would check that it is really tar that is running. You may have a rogue program on your hands.

It is quite easy for a program to change it's name as far as what you see in ps. That makes it easy for a malicious program to avoid detection because it looks like a regular system command. See what files the program has open (lsof is invaluable here). This may give you a clue as to who ran it (i.e. what is the cwd). You can also write a wrapper script for tar that records the command line parms, start time, cwd, terminal, etc that then calls the real tar binary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top