• Quentin Santos's avatar
    Fix compatibility with the sudoers file · 93b969a0
    Quentin Santos authored
    Starting sshuttle without having to type in one's password requires to
    put the sudo-ed command in the `/etc/sudoers` file. However, sshuttle
    sets an environment variable, which cannot be done as-is in the sudoers
    file. This fix prepend the /usr/bin/env command, which allows one to
    pass fixed environment variables to a sudo-ed command.
    
    In practice, the sub-command:
    
    ```
    sudo PYTHONPATH=/usr/lib/python3/dist-packages -- \
            /usr/bin/python3 /usr/bin/sshuttle --method auto --firewall
    ```
    
    becomes
    
    ```
    sudo /usr/bin/env PYTHONPATH=/usr/lib/python3/dist-packages \
            /usr/bin/python3 /usr/bin/sshuttle --method auto --firewall
    ```
    93b969a0
Name
Last commit
Last update
docs Loading commit data...
sshuttle Loading commit data...
.gitignore Loading commit data...
.prospector.yml Loading commit data...
.travis.yml Loading commit data...
CHANGES.rst Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
bandit.yml Loading commit data...
conftest.py Loading commit data...
requirements.txt Loading commit data...
run Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...