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.
In more detail
A setuid program owned by root can do privileged work on behalf of an ordinary user, which makes it a common route to raise privileges. The no-new-privileges security option stops a container process from gaining privileges this way.
Related terms
- no-new-privileges — A container setting that stops processes from gaining more rights than they started with, for example by running a program that is marked to run as its owner.
- root user — The all-powerful administrator account on Linux, with user ID 0, which can read or change anything.
- file permissions — Rules on each file saying which user and group own it and who may read, write or run it.
- least privilege — Giving every program and person only the access they need, and nothing more.
- 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.
- 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.
- file mode — The set of permission bits stored with each file that says what the owner, the group and everyone else may do with it.
Taught in
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Harden And Deliver The Complete Service Stack — Docker Architecture & Production Containers
- Setuid, Setgid, And Root Through sudo — Linux Fundamentals & Systems Administration
- Diagnosing Permission Problems — Red Hat Certified System Administrator (EX200) Exam Prep
- VFAT, ext4 And XFS: Create, Mount, Use — Red Hat Certified System Administrator (EX200) Exam Prep
- The Upload That Ran: Mount Options, Swap And Network Shares — CompTIA Linux+ (XK0-006) Exam Prep
- Starters, Leavers And A Service Account: Accounts On Two Families — CompTIA Linux+ (XK0-006) Exam Prep
- The Pager Command That Opened A Root Shell: sudo, su And Least Privilege — CompTIA Linux+ (XK0-006) Exam Prep
- Root Over SSH From Anywhere: Keys, sshd, setuid Files And Attributes — CompTIA Linux+ (XK0-006) Exam Prep
- Mock Exam 101-500 — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep