#!/bin/bash echo "Adding admin group policy to NM system service" sed -i 's//\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t<\/policy>\n\t\t/g' /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf mkdir -p /etc/polkit-1/localauthority/50-local.d cat > /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla << EOF [indicator-network-service] Identity=unix-group:sudo Action=org.freedesktop.NetworkManager.* ResultAny=yes ResultInactive=no ResultActive=yes EOF