Score:0

Is this a security backdoor?

pe flag

I just realised nmcli commands don't ask me password for sudo access, but ends up modifying a file under /etc/NetworkManager/system-connections/ which is root-only access.

How is this allowed? What's the mechanism that makes a process change a file that the user doesn't have access to?

Details are, I've got a vpn connection, let's say my-vpn, and run for example:

nmcli c modify my-vpn +ipv4.dns 192.168.1.12

and the /etc/NetworkManager/system-connections/my-vpn file is modified to include the dns.

hr flag
The authentication mechanism is likely [PolicyKit](https://wiki.debian.org/PolicyKit). See for example [How can non-admin users connect to Wi-Fi networks?](https://askubuntu.com/questions/230825/how-can-non-admin-users-connect-to-wi-fi-networks). Members of `unix-group:sudo` group are given `localauthority` by default.
Score:2
us flag

No it is not.

From https://wiki.ubuntu.com/Security/Privileges#Use_Network_Manager

All users at the console can manage Ethernet, wireless and 3G networks using Network Manager via DBus. (Ref.: /etc/dbus-1/system.d/NetworkManager.conf, /etc/dbus-1/system.d/nm-applet.conf)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.