Network Manager allows you to configure our networks easily. However, one of its disadvantages is that it allows any user to disable the network. In the case of machines public use this can be a disadvantage , which is important.
Here we will explain how limit access to Network Manager so that only root (or a user who knows the password for root) can disable the network.
Steps to follow
1.- Create the file containing the rule for policy kit
sudo gedit /var/lib/polkit-1/localauthority/50-local.d/networkmanager.pkla
2.- Paste the following content into the file:
[NetworkManager1] Identity = unix-group: users Action = org.freedesktop.NetworkManager.network-control ResultAny = no ResultInactive = no ResultActive = auth_admin_keep [NetworkManager2] Identity = unix-group: users Action = org.freedesktop.NetworkManager.enable- disable-network ResultAny = no ResultInactive = no ResultActive = auth_admin_keep
3.- Add all the users you want to limit to the users group.
sudo adduser username users
Wooooow, what good guides 😀
very good guide.
in linux you let me eject from 192.168.1.1 the modem configuration lets add users admins (roots) so that they are not banned