LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-13-2009, 10:42 PM   #1
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up Ream and effective uid gid


Hi this is not an assignment at all. I have small doubt.
Whats the difference between UID and Effective UID. Can u pls tell with very small example. Please don't show me wikipedia for that.

Last edited by palisetty_suman; 02-13-2009 at 10:56 PM.
 
Old 02-14-2009, 03:21 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by palisetty_suman View Post
Please don't show me wikipedia for that.
So you want us to act as your favorite encyclopedia?

The real UID of a process is the user id of the user that created the process. While the effective UID is that one used to evaluate privileges of the process to perform a particular action. During the process execution it is set by a setuid() system call. You can easily verify it using the command strace against a process which requires root privileges to perform an action.

An example of such a command is passwd which can be run by a normal user, but requires root privileges in order to modify the content of /etc/passwd every time you change your password.
 
Old 02-14-2009, 04:08 AM   #3
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Original Poster
Rep: Reputation: 33
Thumbs up Thanks

Thank u so much sir. Its perfect now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
if the effective UID is 0, a #, otherwise a $ rozilla Ubuntu 2 07-01-2009 01:37 AM
difference between gid and effective gid zahidul Linux - Newbie 1 10-01-2008 11:44 AM
Difference between UID and effective UID chakribobby Linux - Newbie 2 10-23-2007 11:56 AM
Effective UID and real UID Milosevic Linux - General 1 01-06-2007 04:01 PM
Effective UID and Real UID Milosevic Linux - Newbie 1 01-06-2007 11:41 AM


All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration