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)
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.
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.
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.