Security

A hardening scan of a server lists these root-owned SUID files: /usr/bin/passwd, /usr/bin/sudo, /usr/bin/su and /usr/bin/find. The server does not need any of them to run with extra privilege except for normal user logins and privilege escalation. Which SUID bit should the administrator remove first?

Show the answer

Correct answerC. /usr/bin/find

A SUID find can run arbitrary commands as root through -exec, so it gives any user a root shell and has no legitimate need for SUID. The passwd, sudo and su binaries need SUID by design for password changes and privilege escalation.