danfruehauf / NetworkManager-ssh

SSH VPN integration for NetworkManager
Other
253 stars 40 forks source link

A little change to avoid needing root privileges on the ssh server #112

Open tumescentrubor opened 2 years ago

tumescentrubor commented 2 years ago

Feature Request: to enable the ssh server to run without needing a root login, replace the line "IFCONFIG" on line 1390 of nm-ssh-service.c to the location a user-configurable wrapper script that'll manage permissions to ifconfig on the host end. Like, "sudo /sbin/ifconfig $@" in the wrapper file, and something in the sudoers file to let the user run /sbin/ifconfig as root without a password. I hard coded this for myself and it seems to work.