View previous topic :: View next topic |
Author |
Message |
wizulis n00b
Joined: 07 Nov 2010 Posts: 46
|
Posted: Sun Sep 11, 2011 10:03 pm Post subject: nm-applet, gnome-shell and permissions |
|
|
As Gnome-Shell and part of my system is from gnome-overlay im asking here.
I saw a thread some time ago, but can't find it anymore.
So basically, when I (as a user) try to connect to a wireless network, the nm-applet will ask my Administrator password twice and then the wpa-passkey (which is not saved by the way). Does anyone know, what permissions needs to be changed to make nm-applet stop asking for administrator password and start saving some passkeys?
Some relevant package info:
gnome-extra/nm-applet-0.9.0
gnome-base/gnome-shell-3.0.2-r1
sys-apps/dbus-1.4.12
sys-auth/polkit-0.101-r1 |
|
Back to top |
|
|
zoku88 n00b
Joined: 15 Apr 2011 Posts: 4
|
Posted: Mon Oct 10, 2011 6:43 am Post subject: |
|
|
I'm having this same problem, btw, but with wired ethernet instead, so I only get one password prompt.
My NetworkManager.conf
Code: | <policy group="plugdev">
<allow own="org.freedesktop.NetworkManager"/>
<allow send_destination="org.freedesktop.NetworkManager"/>
<allow send_destination="org.freedesktop.NetworkManager"
send_interface="org.freedesktop.NetworkManager.PPP"/>
<allow send_interface="org.freedesktop.NetworkManager.SecretAgent"/>
<!-- Allow NM to talk to known VPN plugins; due to a bug in
the D-Bus daemon, when a plugin is installed and the user
immediately tries to use it, the VPN plugin's rules aren't
always loaded into dbus-daemon. Those rules allow NM to
talk to the plugin. Oops. Work around that by explicitly
allowing NM to talk to VPN plugins here.
-->
<allow send_destination="org.freedesktop.NetworkManager.openconnect"/>
<allow send_destination="org.freedesktop.NetworkManager.openswan"/>
<allow send_destination="org.freedesktop.NetworkManager.openvpn"/>
<allow send_destination="org.freedesktop.NetworkManager.pptp"/>
<allow send_destination="org.freedesktop.NetworkManager.vpnc"/>
</policy> |
I notice that there is no nm-applet.conf in /etc/dbus-1/system.d/ anymore. |
|
Back to top |
|
|
wizulis n00b
Joined: 07 Nov 2010 Posts: 46
|
Posted: Mon Oct 10, 2011 5:51 pm Post subject: |
|
|
Jeah, they get those permissions through polkit now, I guess.
Check that user is in the network group and I fixed it with a file with this from archwiki (https://wiki.archlinux.org/index.php/NetworkManager):
"With polkit:
Place the following in /etc/polkit-1/localauthority/50-local.d/10-org-freedesktop-network-manager-settings.pkla
Code: | [Allow user YOURUSERNAME to create wireless connections for all users]
Identity=unix-user:YOURUSERNAME
Action=org.freedesktop.network-manager-settings.system.modify
ResultAny=no
ResultInactive=no
ResultActive=yes |
"
Don't know is this the right way, but works for me |
|
Back to top |
|
|
comprookie2000 Retired Dev
Joined: 25 Jul 2004 Posts: 925 Location: Sun City Center, Florida
|
Posted: Sun Dec 04, 2011 8:57 pm Post subject: |
|
|
Looks like it has been fixed if you are in the group plugdev.
Code: |
intel64 ~ # cat /etc/polkit-1/localauthority/10-vendor.d/01-org.freedesktop.NetworkManager.settings.modify.system.pkla
[Let users in plugdev group modify NetworkManager]
Identity=unix-group:plugdev
Action=org.freedesktop.NetworkManager.settings.modify.system
ResultAny=no
ResultInactive=no
ResultActive=yes
|
_________________ http://dev.gentoo.org/~dabbott/ |
|
Back to top |
|
|
|