nmcli asking for sudo when on SSH
+0
−0
Is there a way to make nmcli run without sudo over SSH?
nmcli works without sudo on my machines. But when I SSH into them, it starts giving "insufficient privileges" errors. Very annoying when trying to remotely manage my wireguard connections remotely. Probably my fault for using network manager in the first place, but I haven't found anything better.
The privileges are denied by polkit on the basis of the session type. Over SSH it's remote and nmcli requires sudo. Locally, it's X11 and no sudo is required.

0 comment threads