By default, non-privileged users are given permissions to modify networking
interfaces and configurations using the nmcli
command. Non-privileged
users should not be making configuration changes to network configurations. To
ensure that non-privileged users do not have permissions to make changes to the
network configuration using nmcli
, create the following configuration in
/etc/polkit-1/localauthority/20-org.d/10-nm-harden-access.pkla
:
[Disable General User Access to NetworkManager]
Identity=default
Action=org.freedesktop.NetworkManager.*
ResultAny=no
ResultInactive=no
ResultActive=auth_admin