LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2005, 02:38 AM   #1
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Talking Process monitoring


Top is showing some process are running as system user( For example httpd is running as nobody ,...like so) i want to know 1 thing is it possible to identify which user is running this process or from which user home directory this process is executing.(Like phpsuexec or Suphp is doing in the case of php).Or any other tradional ways.



Last edited by hardcorelinux; 01-28-2005 at 03:38 AM.
 
Old 01-22-2005, 04:18 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
yes, that process is being run by "nobody", its a actual user, usually with its home directory /dev/null

look at /etc/passwd .. it contains a list of all users, and there home directory's
 
Old 01-22-2005, 05:17 AM   #3
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Original Poster
Rep: Reputation: 31
Not getting u man , iam not talking about not only nobody user , like wise lot of processes are running as system user's , i want to know which user in my system is running this particular process in a particular time.

 
Old 01-22-2005, 07:31 AM   #4
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Original Poster
Rep: Reputation: 31
Any suggestions.....
 
Old 01-22-2005, 01:30 PM   #5
artistikone
Member
 
Registered: Jul 2003
Distribution: slackware-current
Posts: 76

Rep: Reputation: 15
So are you wanting to know when a user executes a process? Or are you wanting to see which user is running a current process and where it's executed from?

For the latter, us ps-ef. It will show you the user running the process, the process running, and where it's being executed from and with what options.
 
Old 01-24-2005, 06:07 AM   #6
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Original Poster
Rep: Reputation: 31
Thanks i can try this....I want to see to see which user is running a current process and where it's executed from.....
 
Old 01-27-2005, 06:17 AM   #7
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Original Poster
Rep: Reputation: 31
nobody 28597 1982 0 05:35 ? 00:00:02 /usr/local/apache/bin/httpd -DSSL
nobody 28601 1982 0 05:35 ? 00:00:01 /usr/local/apache/bin/httpd -DSSL
nobody 28602 1982 0 05:35 ? 00:00:02 /usr/local/apache/bin/httpd -DSSL
nobody 28604 1982 0 05:35 ? 00:00:01 /usr/local/apache/bin/httpd -DSSL
nobody 28605 1982 0 05:35 ? 00:00:02 /usr/local/apache/bin/httpd -DSSL
nobody 28614 1982 0 05:35 ? 00:00:03 /usr/local/apache/bin/httpd -DSSL
nobody 28618 1982 0 05:35 ? 00:00:03 /usr/local/apache/bin/httpd -DSSL
nobody 28619 1982 0 05:35 ? 00:00:02 /usr/local/apache/bin/httpd -DSSL
nobody 28620 1982 0 05:35 ? 00:00:03 /usr/local/apache/bin/httpd -DSSL
nobody 28621 1982 0 05:35 ? 00:00:03 /usr/local/apache/bin/httpd -DSSL


Ok that ps-ex is executed but that is not the answer of my Question.

Look at this output of ps -ex , lot of users running apache here, how can i know which user is usiers are running apache now.
 
Old 01-27-2005, 06:42 AM   #8
Kernel_Sanders
Registered User
 
Registered: May 2003
Posts: 21

Rep: Reputation: 15
Removed text

Last edited by Kernel_Sanders; 07-14-2006 at 06:32 AM.
 
Old 01-27-2005, 06:57 AM   #9
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Original Poster
Rep: Reputation: 31
That i know "nobody" is the user but that 1 is a system user, but i want to from which user is executing this appache(Don't say nobody is the user ,i want to know from which user in my server is executing apache now, or from which user directory in /home)
 
Old 01-28-2005, 01:06 AM   #10
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Original Poster
Rep: Reputation: 31
Any other suggestions
 
Old 01-28-2005, 01:35 AM   #11
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Code:
i want to know from which user in my server is executing apache now, or from which user directory in /home
Well, you already know which user is executing httpd process. There is no user in /home that is running this process.

I can see why other people are somewhat confused at your question because I am in the same boat.

Code:
That i know "nobody" is the user but that 1 is a system user, but i want to from which user is executing this appache
If you read this, can you see why we are somewhat puzzled at your question? If user 'nobody' has started this process, what makes you think a different user has executed this? That is why we are puzzled at your question.

OR do you mean who is apache serving these requests to?

-twantrd
 
Old 01-28-2005, 02:33 AM   #12
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Original Poster
Rep: Reputation: 31
that user "nobody"is default apache user ( in cpanel server) .But in a particular time lot of clients executing apache from their home directory.I wnat to know which client is executing my webserver process now(not only webserver all process)(That i said eairly if u view phpsuexec logs ucan eaisly know which user is running php pages now like wise is it possible to know which client is running a particular process).


Or
is there any mechanisam to which client is taking more server resources,Yesterday 1 of my server shows very high load,when i check it there is one perl script is running as "nobody" user , but iam not able to find which user is running this perl scripts,because n number of perl scripts are in our server......
 
Old 01-28-2005, 12:15 PM   #13
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Ok, I think I understand what you mean now after taking a look at what phpsuexec is.

Phpsuexec just changes owners and groups to have certain rwx permissions so that only "trusted" users/groups
will modify/execute it and not everyone can abuse it. This is not relevant for html pages. This is relevant for
php pages because php files are not readible but are parsed.

Read more about phpsuexec and see what they do. Then you'll understand. Therefore, to answer you....your question
doesn't apply to apache.


-twantrd
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 04:21 PM
how can i get the process id on exec a process antony_csf Linux - Software 1 06-17-2004 03:06 AM
Bash Scripting - child process affecting parent process mthaddon Linux - General 1 05-02-2004 01:19 PM
problem with binding process and than execute another process chapa Programming 0 08-27-2003 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration