Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshuttle fails when different sudo message appears. #916

Open
rogerkynaston opened this issue Dec 8, 2023 · 0 comments
Open

sshuttle fails when different sudo message appears. #916

rogerkynaston opened this issue Dec 8, 2023 · 0 comments

Comments

@rogerkynaston
Copy link

I am running sshuttle on a manged Mac and it has a non-standard message that is printed every time that sudo is run. Sshuttle does not recognise this and exits with the error below

c : Unable to start firewall manager. Expected READY, got b'Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.\n'. Command=['/usr/bin/sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', 'PYTHONPATH=/opt/homebrew/Cellar/sshuttle/1.1.1/libexec/lib/python3.12/site-packages', '/opt/homebrew/Cellar/sshuttle/1.1.1/libexec/bin/python', '/opt/homebrew/bin/sshuttle', '-v', '--method', 'auto', '--firewall']

I do not have privileges to modify my sudo setup (at work anyway). Could there be a fix where it can parse any output from sudo and match the password prompt?

OS is Ventura 13.6.2 on Apple silicon and installed from homebrew.

skuhl added a commit to skuhl/sshuttle that referenced this issue Jan 1, 2024
When we use sudo and start the firewall process, we should be able to
read standard in and find the string "READY". However, some
administrators use a wrapper around sudo to print warning messages
(instead of sudo's lecture feature) to standard out. This commit reads
up to 100 lines looking for "READY" instead of expecting it on the
first line.

I believe this should fix issue sshuttle#916.
brianmay pushed a commit that referenced this issue Jan 1, 2024
When we use sudo and start the firewall process, we should be able to
read standard in and find the string "READY". However, some
administrators use a wrapper around sudo to print warning messages
(instead of sudo's lecture feature) to standard out. This commit reads
up to 100 lines looking for "READY" instead of expecting it on the
first line.

I believe this should fix issue #916.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant