Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm little confused about "process" in linux. How does linux assign privileges to processes that are created under different users? Say if a root user starts a process (say jboss server) does the jboss server will have root privileges? or will have a seperate privilege? can anybody suggest a site that have information about linux process.

Thanks and Regards.

share|improve this question

migrated from Apr 2 '13 at 11:53

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

The process is usually run by a specific user. if you log in yourself and run the program, it will run with the same privileges as yourself.

So in your case if you run a root user starts jboss server, jboss server process will have root privileges.

I think you can find a lot of information in this post:

how does a process in linux decides privileges allotted to it

share|improve this answer
The above link speaks about effective userid, how to get the effect userid of a proces if I know that processid of a process? – pavi Apr 2 '13 at 10:59
To find the effective user id of process user "ps -ef" will give you effective user id of all the process running.To find the effective user of a specific process say "jboss" you can use "ps -ef | grep jboss",thank you very much TheEwook for your answer. – pavi Apr 2 '13 at 12:10
Glad to help ;) – TheEwook Apr 2 '13 at 13:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .