"Not authorized to control networking"
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
"Not authorized to control networking"
Mint 19 xfce
I login as non-root user. I updated my Mint yesterday.
Now, when i click on a connection in the network manager panel-applet, i get "Not authorized to control networking"
I'm guessing i need to do one of the following:
- add user to netdev group https://askubuntu.com/a/304181
- change configuration of DBus policy file https://superuser.com/a/219140
- do something with polkit https://askubuntu.com/a/752168/412839
Or...?
What do folks recommend?
THX
I login as non-root user. I updated my Mint yesterday.
Now, when i click on a connection in the network manager panel-applet, i get "Not authorized to control networking"
I'm guessing i need to do one of the following:
- add user to netdev group https://askubuntu.com/a/304181
- change configuration of DBus policy file https://superuser.com/a/219140
- do something with polkit https://askubuntu.com/a/752168/412839
Or...?
What do folks recommend?
THX
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: "Not authorized to control networking"
find $HOME ! -user $USER -type f
more likely you have some permission issues again. after updating crucial components did you reboot?
Re: "Not authorized to control networking"
Yep, rebooted after update.
When logged in as Admin user, i can connect/disconnect using nm-applet.
But when logged in as Desktop user, i can see the nm-applet in panel, but "disconnect" is grayed out. If i click anything, i get "Not authorized to control networking".
i applied this config in
and i ensured the user is a member of netdev.
https://askubuntu.com/a/708262
But still cannot connect/disconnect with nm-applet. Also tried, but no luck.
i confirmed polkit agent is running
But maybe i don't need the agent? "if you use gnome-shell, you do not need /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 because gnome-shell has its own agent incorporated" https://bbs.archlinux.org/viewtopic.php ... 2#p1099562
i noticed "NetworkManager" is not listed when i do pkaction. Should it be?
Not sure if this is related, but I'm getting
https://mail.gnome.org/archives/network ... 00039.html
NetworkManager appears to be running, as Mint connects to previously-stored wiki on boot, and In Task Manager, i see
NetworkManager --no-daemon
nm-applet
Maybe i need to use? Something like:
https://gist.github.com/gsongsong/36fc7 ... b391cb98f9
https://developer.gnome.org/NetworkMana ... .conf.html
https://superuser.com/questions/219108/ ... 140#219140
Or, maybe need to use
https://bugs.launchpad.net/ubuntu/+sour ... omments/41
But i thought the asterisk in my first try, above, would cover this.
Or, add "ck-launch-session" to my .xinitrc file?
https://www.linuxquestions.org/question ... ost4230988
Or, remove "ck-launch-session" from my .xinitrc file?
https://bbs.archlinux.org/viewtopic.php ... 9#p1099639
Or, change my login manager?
"Changed login manager, seems to have sorted it."
https://bbs.archlinux.org/viewtopic.php ... 5#p1084865
Or, use 'network' group, instead of 'netdev'?
https://wiki.archlinux.org/index.php/Ne ... ermissions
Or, 'plugdev' group?
https://www.linuxquestions.org/question ... ost4461109
I noticed the Admin user is not a member of netdev:
This comment seems to indicate i can add a new connection as non-root, but it won't be available to all users. However, when i try, everything in "Network Connections" app is disabled.
https://bugs.launchpad.net/ubuntu/+sour ... comments/4
Or, something like
https://bugs.launchpad.net/ubuntu/+sour ... comments/4
When logged in as Admin user, i can connect/disconnect using nm-applet.
But when logged in as Desktop user, i can see the nm-applet in panel, but "disconnect" is grayed out. If i click anything, i get "Not authorized to control networking".
i applied this config in
Code: Select all
/etc/polkit-1/localauthority/10-vendor.d/org.freedesktop.NetworkManager.pkla
Code: Select all
[nm-applet]
Identity=unix-group:netdev
Action=org.freedesktop.NetworkManager.*
ResultActive=yes
ResultAny=yes
ResultInactive=no
https://askubuntu.com/a/708262
But still cannot connect/disconnect with nm-applet. Also tried
Code: Select all
Action=NetworkManager
i confirmed polkit agent is running
Code: Select all
$ ps -ef | grep polkit-gnome
johny 1292 1150 0 16:39 ? 00:00:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
johny 2065 2054 0 16:45 pts/0 00:00:00 grep --color=auto polkit-gnome
i noticed "NetworkManager" is not listed when i do pkaction. Should it be?
Not sure if this is related, but I'm getting
Code: Select all
$ pkaction -v -a org.freedesktop.NetworkManager.settings.modify.system
No action with action id org.freedesktop.NetworkManager.settings.modify.system
NetworkManager appears to be running, as Mint connects to previously-stored wiki on boot, and In Task Manager, i see
NetworkManager --no-daemon
nm-applet
Maybe i need to use
Code: Select all
/etc/dbus-1/system.d/NetworkManager.conf
Code: Select all
<policy group="network">
<allow send_destination="org.freedesktop.NetworkManager"/>
<allow send_interface="org.freedesktop.NetworkManager"/>
</policy>
https://developer.gnome.org/NetworkMana ... .conf.html
https://superuser.com/questions/219108/ ... 140#219140
Or, maybe need to use
Code: Select all
Action=org.freedesktop.NetworkManager.settings.modify.system
But i thought the asterisk in my first try, above, would cover this.
Or, add "ck-launch-session" to my .xinitrc file?
https://www.linuxquestions.org/question ... ost4230988
Or, remove "ck-launch-session" from my .xinitrc file?
https://bbs.archlinux.org/viewtopic.php ... 9#p1099639
Or, change my login manager?
"Changed login manager, seems to have sorted it."
https://bbs.archlinux.org/viewtopic.php ... 5#p1084865
Or, use 'network' group, instead of 'netdev'?
https://wiki.archlinux.org/index.php/Ne ... ermissions
Or, 'plugdev' group?
https://www.linuxquestions.org/question ... ost4461109
I noticed the Admin user is not a member of netdev:
Code: Select all
$ id patty
uid=1001(patty) gid=1001(patty) groups=1001(patty),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),44(video),46(plugdev),115(lpadmin),120(scanner),128(sambashare)
https://bugs.launchpad.net/ubuntu/+sour ... comments/4
Or, something like
Code: Select all
/lib/udev/rules.d/70-usb-modeswitch.rules
to get networking with my Aldi/Medion Mobile Huawei E173:
# own udev rules for Aldi/Medion Huawei E173
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1446 -M '55534243123456780000000000000011062000000100000000000000000000'"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1436", RUN+="/bin/bash -c 'modprobe option && echo 12d1 1436 > /sys/bus/usb-serial/drivers/option1/new_id'"
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: "Not authorized to control networking"
Adding the user to the netdev group should be sufficient. It is in Cinnamon in any case...
In XFCE in the Users and Groups app, under Advanced Settings > User Privileges there is a checkbox for 'Connect to Wireless and Ethernet Networks'. This is the same as adding the user to the netdev group. I've just checked an XFCE 19 VM install and that allows a standard user to manage network connections with no other changes required.
Desktop agnostic command line method
In XFCE in the Users and Groups app, under Advanced Settings > User Privileges there is a checkbox for 'Connect to Wireless and Ethernet Networks'. This is the same as adding the user to the netdev group. I've just checked an XFCE 19 VM install and that allows a standard user to manage network connections with no other changes required.
Desktop agnostic command line method
sudo usermod -a -G netdev <user>
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: "Not authorized to control networking"
it's already checked. Prolly cuz i already added the user to netdev.smurphos wrote: ⤴Fri Aug 24, 2018 1:42 amin the Users and Groups app, under Advanced Settings > User Privileges there is a checkbox for 'Connect to Wireless and Ethernet Networks'. This is the same as adding the user to the netdev group. I've just checked an XFCE 19 VM install and that allows a standard user to manage network connections with no other changes required.
Still can't manage wireless connections.
Code: Select all
$ id
uid=1000(johny) gid=1000(johny) groups=1000(johny),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),29(audio),30(dip),44(video),46(plugdev),108(netdev),120(scanner)
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: "Not authorized to control networking"
I've just checked again with another fresh standard user in XFCE, adding the netdev group only and it works fine for me out of the box, both via the Network applet and the tray indicator. Just deleted the default network connection and re-added it to double check.
Have you applied any of the other 'solutions' you have found? Maybe roll those changes back. Membership of the netdev group should be enough. It's why the group exists - https://wiki.debian.org/SystemGroups
Have you applied any of the other 'solutions' you have found? Maybe roll those changes back. Membership of the netdev group should be enough. It's why the group exists - https://wiki.debian.org/SystemGroups
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: "Not authorized to control networking"
How? Command line? I'm adding via the /etc/adduser.conf. https://askubuntu.com/a/748223
I removed the polkit file (I assumed a reboot isn't necessary), created a new user, confirmed they're in netdev, logged out, then logged in as the new user.Have you applied any of the other 'solutions' you have found? Maybe roll those changes back.
Same problem with the new user.
Code: Select all
$ id why
uid=1002(why) gid=1002(why) groups=1002(why),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),29(audio),30(dip),44(video),46(plugdev),108(netdev),120(scanner)
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: "Not authorized to control networking"
Just via the XFCE users and groups GUI app. Create a basic new user (I'm not setting the 'Desktop user' ) and adding the netdev group only.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: "Not authorized to control networking"
Just tried that as-well - the Desktop User type with netdev + other groups by default also works just fine. I think you've broken something....
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: "Not authorized to control networking"
BTW any particular reason for not using an Admin user or are you setting up machines for multiusers whom you don't trust not to the break the system?
For a sole user machine not using an sudo capable user account is IMHO just adding unnecessary barriers to comfortable computer use.
For a sole user machine not using an sudo capable user account is IMHO just adding unnecessary barriers to comfortable computer use.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: "Not authorized to control networking"
setting up machines for multiusers whom i don't trust not to the break the system.
Would be enlightening to figure out what's broken.
I assume you're running an updated 19.
THX
Would be enlightening to figure out what's broken.
I assume you're running an updated 19.
THX
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: "Not authorized to control networking"
Yep.
Not sure how to diagnose this issue but first think I'd do is reverse any of the tweaks listed in your second post that you have tried.
You seem to be a fan of tinkering - nothing wrong with that but it may be something else you've tweaked is causing the issue. IIRC you were engaged in slimming down your system and disabling services a while back....maybe something that's been disabled/removed there is causing the issue.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.