sudo command do not follow /etc/sudoers in BTT

I would like to use sshuttle to create a small VPN that I want to start/stop with a button in BTT.
To start the VPN, I can run the following command in the VPN:
sudo -n sshuttle --dns --daemon --pidfile=/tmp/sshuttle.pid -e "ssh -i /Users/login/.ssh/id_rsa.sshutle" -r login@xxx.xxx.xxx.xxx 0/0

I have set that command in the authorized command without password for sudo and it works nicely. (So far so good)

However if I try to run that command in the "execute shell script" it returns

sudo: a password is required

so it seems that the file /etc/sudoers is not handle correctly from BTT. Is this expected?

1 Like