Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-21-2010, 03:09 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2010
Posts: 2
Rep:
|
[SOLVED] Output of ps command - can't find file
Hi there,
Today I found interesting issue. The output of ps command show some user's process, executing some file, let's say x.pl.
taz 2795 10.0 5.5 30568 5600 ? R 08:59 0:00 ./x.pl
I looked into taz's home directory in search of x.pl, however, found nothing.
Using find / -name x.pl also gave no results.
Interesting thing is that there are couple of such processes and the filenames look like generated automatically, ex. hyujip.pl.
Any ideas how to track down those files and which process spawns them?
Thanks!
Last edited by kurk; 04-29-2010 at 04:14 AM.
|
|
|
|
04-21-2010, 03:52 AM
|
#2
|
|
LQ Newbie
Registered: Apr 2010
Posts: 2
Rep:
|
Perhaps looking at the process tree will help? From the ps manpage:
To print a process tree:
ps -ejH
ps axjf
|
|
|
|
04-21-2010, 03:58 AM
|
#3
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
The command line ./x.pl does not imply a program in taz home directory. For example
Code:
cd ~<some user name>/bin
./x.pl
Thus, not knowing what the current working directory was when the command was issued, you need to search the whole file system hierarchy to try to find these programs. Even then you may not find them -- they could be on a networked file system that is no longer mounted. For more detail of trying to find a program, based on the command line used to start it (including why it cannot always be done) see Greg's WIKI.
|
|
|
|
04-29-2010, 04:14 AM
|
#4
|
|
LQ Newbie
Registered: Apr 2010
Posts: 2
Original Poster
Rep:
|
Thank you. It turned out that the system has been compromised, these scripts were uploaded via FTP, ran and deleted.
|
|
|
|
04-29-2010, 12:44 PM
|
#5
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Quote:
|
It turned out that the system has been compromised, these scripts were uploaded via FTP, ran and deleted.
|
I hope you realise your system should still be regarded as "compromised".
You have work to do.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:17 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|