22

I have Ubuntu 13.04 Gnome with Mate.

If I click on the networking icon on the top tool bar and try to do something like add a never before used Wifi or simply click Hardwire Connection 1 when I have changed to a new network, I get 'Connection activation failed. (32) Not authorized to control networking.'

My presumption is that I have lacking some group attribute for my user or else there is some security setting.

I can make the changes if I log in as root instead of myself.

What must be tweaked to allow my user name the privileges to handle this?

Dale Amon
  • 341
  • 1
  • 2
  • 7

3 Answers3

15

To fix this problem, it should be enough to add your user to the network or netdev group. To do it, you can use the GUI in the settings menu (that cog in the top right), or just type something like this in a terminal:

sudo usermod -G netdev -a yourusername

Remember to logout/login again to update your user privileges.

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
gerlos
  • 2,664
  • 1
  • 19
  • 25
  • Now that's interesting. There does not seem to *be* a network group at all. That strikes me as indicative of a deeper problem... – Dale Amon Jun 06 '13 at 00:48
  • 1
    I've [approved](http://askubuntu.com/help/editing) an [edit](http://askubuntu.com/review/suggested-edits/138828) changing the group from `network` to `netdev`. (The edit was anonymous; it may have been from gerlos not logged in, or anyone else on the Internet. gerlos: Please feel free to roll this back or edit further.) It makes another important change--it adds the `-a` flag. Without `-a` you'd be removed from all other groups (if adding you to the named group succeeded). But I don't know if `netdev` will work for this either; *none of my Ubuntu systems (including 13.04) have either group.* – Eliah Kagan Jul 22 '13 at 00:36
  • 11
    I have the same problem as @DaleAmon, but this doesn't seem to fix it. Still get the same error even when I try to select an existing wireless network. – Ken Williams Nov 23 '13 at 15:34
  • @KenWilliams http://askubuntu.com/questions/668411/failed-to-add-activate-connection-32-insufficient-privileges Also, log out and then back in. – mchid Sep 20 '16 at 09:52
  • Didn't help for me. – Zimano May 23 '18 at 13:24
  • @Zimano on which Ubuntu release are you trying this? – gerlos May 24 '18 at 12:57
  • 1
    @gerlos Hey, my comment was quite short. I wrote it at work while scanning answers. I tried this on Raspbian. I installed NetworkManager and had been using it to develop with in Qt. Eventually, this problem arose when trying to run the application with different user levels. What helped for me was to add a PolicyKit rule for NetworkManager. See this answer: https://askubuntu.com/questions/668411/failed-to-add-activate-connection-32-insufficient-privileges – Zimano May 24 '18 at 15:36
  • @Zimano you're right - actually the management of these privileges changed in the years - to help future readers it's always important to specify which release we are talking of (Ubuntu 13.04 in this topic). – gerlos May 24 '18 at 16:45
  • 1
    Since there's some uncertainty, I just want to confirm that using "netdev" like in the edit above worked perfectly for me on Ubuntu Mate 20.04. – Eleanor Holley Sep 04 '20 at 20:55
  • Such group does not seem to exist in Mint – gatopeich Feb 20 '23 at 09:43
  • 1
    @gatopeich this is because in recent distros this is done using PolicyKit instead of system groups - see the comment from zimano above. This answer was related to a 10 (!!!) years old Ubuntu release. – gerlos Feb 28 '23 at 12:05
2

In my case, I did not have the privileges. So, either log in as root if using the GUI, or use sudo when using terminal.

Pe Dro
  • 147
  • 2
  • 10
0

It has been a while, but I ran into this problem while updating to 14.04. In my case the problem was with the lxdm display manager. Try switching your display managers by running

sudo dpkg-reconfigure lxdm

If you don't have other manager install try something like GDM:

sudo apt-get install gdm

denten
  • 141
  • 1
  • 7