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

Asked by Spam Bait

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Best bob marshall (rmarsharmarsharmarsha) said :
#2

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!

Revision history for this message
Spam Bait (spambait9876) said :
#3

Thanks bob marshall, that solved my question.