PDA

View Full Version : Linux processes


Yohhan
03-04-2004, 01:27 PM
How can I figure out what a process in Linux is running as? (ie: root, or another user)

eloj
03-04-2004, 01:36 PM
ps u / ps aux

I guess technically this is "what user the service was started as", but I'm just going to go ahead and assume that's what you were asking.

tdg
03-04-2004, 02:19 PM
ps aux would be the best way, and if your searching for a particular process you can use feed the ps output to grep to show only that particular process, i.e. if you were looking for "httpd", doing a ps aux | grep httpd would show you that process, it's owner, etc. You can also use top, but as the name implies it only shows process' using the most resources.