Unix Programming - Difference between euid and uid

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2007 > Difference between euid and uid





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Difference between euid and uid
lak

2007-11-20, 7:34 am

What is the difference between EUID ans UID?
When it will be used?
Rainer Weikusat

2007-11-20, 7:34 am

lak <lakindia89@gmail.com> writes:
> What is the difference between EUID ans UID?
> When it will be used?


The UID (also called 'real user-id') is the id of the user who created
a particular process (or the id a process running as root used as
argument to a setuid-call) and the effective user-id (EUID) is the one
used to determine access permissions, eg to files. They differ of some
user executed a file which was setuid (permission bit) to some other
user. In this case, the EUID would be the other user's id.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com