Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Apr 2 '13 at 11:53

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

1 Answer 1

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
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.