this post was submitted on 31 Dec 2023
178 points (95.9% liked)
ADHD memes
11051 readers
755 users here now
ADHD Memes
The lighter side of ADHD
Rules
Other ND communities
- !adhd@lemmy.world - Generic discussion
- !ausomememes@lemmy.dbzer0.com
- !autism@lemmy.world
- !autisticandadhd
- !neurodivergence@beehaw.org
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not quite! The setuid bit means the file will be run as its owner, not necessarily as root. The most common use for this (which is used by sudo) is to have the file owned by root and executable by everyone, so that when anyone runs it it will run as root, but you can also use it to have a program always run as any user (thus limiting what it's allowed to do). There's also a setgid bit so it will be run as its owning group, which is less frequently used. Fun fact!