Imported using git-ubuntu import.
Changelog parent: a1743f9558
New changelog entries:
* Copied some touch tweaks (n-m config and user groups) to desktop-next
[ Michael Vogt ]
* snappy/desktop-next:
- add snappypkg user and remove clickpkg user
impish
parent
a1743f9558
commit
2b7fd1f652
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Adding admin group policy to NM system service"
|
||||||
|
|
||||||
|
sed -i 's/<policy user="root">/<policy group="sudo">\n\t\t\t\t<allow send_destination="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager.SecretAgent"\/>\n\t\t<\/policy>\n\t\t<policy user="root">/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
|
Loading…
Reference in new issue