Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-04-2010, 10:51 PM
|
#1
|
Member
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82
Rep:
|
euser and ruser
What are meaning of these ps options , euser and ruser?
Could you please help me to solve the problem?
|
|
|
01-04-2010, 11:31 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,493
|
Quote:
Originally Posted by jcky
What are meaning of these ps options , euser and ruser?
Could you please help me to solve the problem?
|
Solve what problem??? What are you trying to do, on what version/distro of Linux, and what exactly is the problem??
If you need to know about command options, type in "man ps", and read about them.
|
|
|
01-04-2010, 11:33 PM
|
#3
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
There are three user IDs associated with a process. Real user, effective user and saved-set user.
If you run a suid root program, the effective user is root, while the real user is your regular user. A program like passwd allows you to change your own password but not another persons. The program needs to be root to edit /etc/passwd or /etc/shadow, however it also needs to know which user called it.
Another program may need to start out as a system user, switch back to the original user (real user) and later back again as the system user. This is what the saved-set user is for. When a system user executes a command on our behalf, it calls suid to change the effective user ID to our UID. But under these conditions, the saved-set user ID is not changed. After the program (such as a filter is finished) the program runs "geteuid" to change the effective UID back to the system user. This is allowed because the saved set-user-ID is the same system user. This allows a program or service to drop privileges when not needed.
|
|
|
All times are GMT -5. The time now is 04:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|