FS#18622 - network-manager-applet 0.8-2: insufficient privileges
Attached to Project:
Arch Linux
Opened by Heiko Baums (cyberpatrol) - Tuesday, 09 March 2010, 19:41 GMT
Last edited by Jan de Groot (JGC) - Saturday, 13 March 2010, 19:18 GMT
Opened by Heiko Baums (cyberpatrol) - Tuesday, 09 March 2010, 19:41 GMT
Last edited by Jan de Groot (JGC) - Saturday, 13 March 2010, 19:18 GMT
|
Details
Description:
It's not possible to add, edit or delete any connections in network-manager-applet 0.8-2 if the connection shall be accessible for all users. If a connection which was created with network-manager-applet 0.7 shall be edited or deleted, or a new connection shall be added for all users a window is opened with the error message "Insufficient privileges." I guess the same will appear if such a connection shall be established. So it's not possible to add, edit, delete or establish any connections for all users except of the automatically established wired eth0 connection. Or in other words it's not possible to use network-manager-applet. |
This task depends upon
Closed by Jan de Groot (JGC)
Saturday, 13 March 2010, 19:18 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in latest polkit-gnome. Anyone not using a desktop that implements /etc/xdg/* stuff has to fix this himself.
Saturday, 13 March 2010, 19:18 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in latest polkit-gnome. Anyone not using a desktop that implements /etc/xdg/* stuff has to fix this himself.
network-manager-applet has a bug and is not usable in version 0.8-2. It was in 0.7.
So, please, re-open this bug and try to fix it or at least find out if this a downstream or an upstream bug.
When you try to add a global connection, networkmanager will ask policykit for authorization to do so. Policykit wants root permissions, so it fires up an authorization agent. These agents are provided by polkit-gnome and polkit-kde at this moment, but both have OnlyShowIn=KDE/GNOME entries in their .desktop files.
I'll add dependencies on polkit-gnome for the next rebuild of networkmanager-applet, and patch the .desktop file in polkit-gnome to remove the OnlyShowIn=GNOME and replace it with DontShowIn=KDE. This fixes the issue in non KDE/GNOME environments.
I removed the OnlyShowIn lines from /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop and /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop and now it works again. But you probably shouldn't add the DontShowIn options to these .desktop files. I don't know, if /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop could be needed in Gnome, too, if someone uses KDE software in Gnome, and if /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop could be needed in KDE, if someone uses Gnome software in KDE. But I don't know too little about polkit to decide this.
One question: Was this a bug or not? A small one, but it was one. ;-)
Another question (a bit off topic): Would you, please, take bug reports more seriously in the future? Then I won't need to get angry again. You can talk with me about nearly everything, but in a friendly way. You can of course ask, if you think that this could be a configuration issue, but, please, only close bugs if the reporter has confirmed that this bug is invalid. And of course it already happened that I filed a few bug reports which were invalid. But nobody is omniscient and everybody can sometimes miss an option. But if I report a bug, it usually is a bug. ;-)
Peace?
As for the bug: Initially I didn't read the bug correctly, as it looked like just another bugreport about a user not setting his things up right. When you requested reopening with a bitchy comment, someone else denied the request with another bitchy comment.
The reason why I reacted this way about the closing as "Works for me" was that this didn't happen for the first time.
If only one of the polkit agents is needed, then you should indeed add DontShowIn=KDE to /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop and/or OnlyShowIn=KDE to /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop, because KDE is the only desktop environment I know which is not based on GTK/Gnome. At least on Xfce and LXDE the Gnome variant is preferred.
There's also an upstream bug report for LXDE: https://bugzilla.gnome.org/show_bug.cgi?id=609631
And one for Xfce: https://bugzilla.gnome.org/show_bug.cgi?id=610715
But in this case gnome-keyring-daemon is already started by the lines
auth optional pam_gnome_keyring.so
and
session optional pam_gnome_keyring.so auto_start
which are in /etc/pam.d/gdm and which I also added to /etc/pam.d/slim.