Ques What is Unix ID’s?
Answer
Each user of a Unix account has a unique UID.
UID 0 means the Superuser (system admin)
A user account belongs to multiple groups.
Subjects are processes associated with UID/GID pairs.
Objects are files.
Ques Describe the Detour used in UNIX user Ids and process Ids.
Answer
1. Every user in UNIX like the operating system is identified by a different integer
number, this unique number is called a user ID.
2. There are three types of UID defined for a process, which can be dynamically
changed as for the privilege of task
3. The three different types of user IDs defined are:
● Real user ID: it is an account of the owner of this process. It defines which
files that this process has access to.
● Effective user ID: it is normally the same as a real user ID, but sometimes
it is changed to enable a non-privileged user to access the file that can
only be accessed by root.
● Saved user ID: it is used when a process is running with elevated
privileges needs to do some underprivileged work, this can be achieved by
temporary switching on a non-privileged account.
● Each user account has a unique UID. The UID 0 means the Superuser
( system admin). A user account belongs to multiple groups. The subject is
processes, associated with uid/ gid pairs.