What does `chmod u+s` (setuid) do, and why is it risky?

AdvancedConceptLinux and shell
Answer

The executable runs with the file owner's privileges (root for /usr/bin/passwd). A bug in a setuid-root binary is a privilege escalation path, so audit them regularly.

find / -perm -4000 -type f 2>/dev/null
All Real-World Interview questions Roadmap: Interview readiness

More on Linux and shell