LightDM - insufficient privileges

I have four computers with Ubuntu 16.04, two have been updated from
15.10 to 16.04 and two were installed from scratch.

On machines that have been updated, you can select an already configured
connection (LightDM user can not create, change or remove connections)
before you log in. In the updated machine, an available connection is
automatically selected and so it is possible to ssh to the machine.

On machines that received the 16:04 version, LightDM user can not select
one of the connections previously created displaying the error
insufficient privileges.

After checking the logs and the differences in the configuration files
between the machines I realized that the files in /etc/NetworkManager
/system-connections/* had small differences!

Installed machines from scratch:

[Connection]
id=corona
uuid=4ce20be5-d5a0-41c5-820c-852136fade99
type=wifi
permissions=user:modolo:;
secondaries=

Updated machines:

[Connection]
id=corona
uuid=9bbd3c2b-295b-45e0-b1da-5c6b72e3734d
type=wifi
permissions=
secondaries=

What has changed, in my view, with the new NetworkManager is that even
when the connection is created and saved to ALL, permissions are created
only for the user who is editing the connection
(permissions=user:modolo:;).

After updating the permissions from "line=user:modolo:;" to
"permissions=" in all connections files you can select the same before
authentication and in addition, if any of the connections is active, it
is automatically selected.

I hope this helps and works for everyone.

Hugs,
Marcelo Modolo

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1574020

Title:
  Can't use networkmanager from lightdm

Status in network-manager package in Ubuntu:
  Confirmed
Status in unity-greeter package in Ubuntu:
  Confirmed

Bug description:
  After upgrading to 16.04  desktop (unity) (clean install) from 14.04,
  (so not really upgrading, but you get the point) I noticed that
  lightdm with unity-greeter (all stock, nothing changed) can't connect
  to WiFi with network-manager.

  WiFi works after loggin it, but it should be working before also, if
  not, what's the point in having an icon there :)

  I get the following message: Failed to add/activate connection. - (1) 
Insufficient privileges. - see image.
  This worked fine in 14.04.

  I have noticed this problem in both my desktop (Broadcom WiFi) and
  Laptop (Intel WiFi) - So it has nothing to be with the chip.

  Feel free to ask for more info.

  Edit:

  From syslog:

  Apr 23 16:50:46 desktop NetworkManager[979]: nm_settings_connection_delete: 
assertion 'NM_IS_SETTINGS_CONNECTION (self)' failed
  Apr 23 16:50:46 desktop NetworkManager[979]: <info>  [1461423046.1662] audit: 
op="connection-add-activate" pid=1275 uid=108 result="fail" 
reason="Insufficient privileges."
  Apr 23 16:50:46 desktop NetworkManager[979]: (NetworkManager:979): 
GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' 
failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1574020/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to