Linux - SoftwareThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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)
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?
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......
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.