Hacker News new | ask | show | jobs
by SoftTalker 363 days ago
> if any binary has setuid set, it runs as root

More precisely, it runs as the file owner. Which is often root.

1 comments

For anyone thinking this is unnecessarily pedantic, it’s not.

I didn’t exactly know what setuid did. I learned something today. :)

You might also research what setgid bit on directories do, it's useful sometimes.