1833861 Members
2001 Online
110063 Solutions
New Discussion

Re: Check process owner?

 
mario.schroeder
Frequent Advisor

Check process owner?

how can I check the owner of the process?

"ps -ef |grep defunc > info.txt" ??
4 REPLIES 4
Mark Grant
Honored Contributor

Re: Check process owner?

Umm, the user name will be on the left hand column.

You are aware that defunct processes are not really aproblme unless you have some dodgy software is spawning hundreds of them
Never preceed any demonstration with anything more predictive than "watch this"
G. Vrijhoeven
Honored Contributor

Re: Check process owner?

Hi,

The owner is specified in the first collom.

Gideon
jason morgan_3
Occasional Advisor

Re: Check process owner?

If you know the name of the process.
Do this:

ps -ef |grep PROCESSNAME

The first column should be the User ID. To match the UID to a name:

grep UID /etc/passwd

that should give you all the info you need

Jason
Bill Hassell
Honored Contributor

Re: Check process owner?

Actually, if you have a list of the processes that are defunct, then you have the PID already. You can look up all processes owned by the user without grep (which is not very picky on what it matches) by using ps -fu user_name.


Bill Hassell, sysadmin