Security

An audit shows that /usr/local/bin/report-tool has mode -rwsr-xr-x and is owned by root. The tool does not need elevated privileges. The administrator must remove the SUID bit while keeping all other permissions unchanged. Which command does this?

Show the answer

Correct answerD. chmod u-s /usr/local/bin/report-tool

The u-s symbolic mode clears the set-user-ID bit and leaves the rest of the mode intact. The g-s mode clears only the SGID bit, so the file would still run as root.