Linux authorization checks act on process credentials rather than directly on a typed username. A process has several related user and group IDs, each serving a different role. Most ordinary programs start with matching identities, while privileged programs can use distinct values deliberately.
Permissions · Lesson 7
Process Permissions
Learn how real, effective, and saved user IDs help Linux processes track callers and manage privilege.