effective user ID
The identity the kernel uses for a process's permission checks, which can differ from the real user ID of the person who started it.
In more detail
Normally the two match. Running a setuid program sets the effective UID to the file's owner while the real UID stays yours, so the program can act with the owner's privileges and still know who called it. Permission checks always use the effective identity.
Example
real=1 effective=0 bit=setuid shows an ordinary user running a root-owned setuid program.Related terms
- setuid — A permission bit on an executable that makes it run with the file owner's identity instead of the identity of the user who started it.
- setgid — A permission bit that makes an executable run with the file's group identity, or makes new files in a directory inherit that directory's group.
- UID and GID — The numbers Linux uses to identify a user (UID) and a group (GID); root is UID 0.
- root user — The all-powerful administrator account on Linux, with user ID 0, which can read or change anything.
Taught in
- Setuid, Setgid, And Root Through sudo — Linux Fundamentals & Systems Administration