How do I find the userid under which a process has started ?

Asked by Spam Bait on 2009-05-09

I would like to know how to find the userid under which a process was started.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-system-monitor Edit question
Assignee:
No assignee Edit question
Solved by:
bob marshall
Solved:
2009-05-10
Last query:
2009-05-10
Last reply:
2009-05-09
Arnaudus (a-lerouzic) said : #1

Hi!

Open a terminal (Applications -> Accessories -> Terminal) and type:

ps -aux

This should do the job, the first column is the user.

Note: If you know the process number or the name of the command, you can zero in by piping the output through grep, ie. ps -elf | grep firefox or ps -elf | grep 1565. Using the first form, you'll have to ignore the extra process of the grep itself, of course!

Spam Bait (spambait9876) said : #3

Thanks bob marshall, that solved my question.