Shell

This executable can spawn an interactive system shell.
  1. CommentThis requires the name of an installed gem to be provided, e.g., debug is usually installed.
    This function can be performed by any unprivileged user.
    gem open -e '/bin/sh -s' debug
    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 ....
    gem open -e '/bin/sh -s' debug

Inherit

This executable can inherit functions from another.
  1. CommentThis requires the name of an installed gem to be provided, e.g., debug is usually installed.
    This function can be performed by any unprivileged user.
    gem open debug
    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 ....
    gem open debug
    Functions

    Inherits from vi, thus possibly granting its functions.

  2. This function can be performed by any unprivileged user.
    gem build /path/to/script.rb
    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 ....
    gem build /path/to/script.rb
    Functions

    Inherits from ruby, thus possibly granting its functions.

  3. This function can be performed by any unprivileged user.
    gem install --file /path/to/script.rb
    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 ....
    gem install --file /path/to/script.rb
    Functions

    Inherits from ruby, thus possibly granting its functions.