Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Unable to control connman as non-root user. (Read 159 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unable to control connman as non-root user.

Yeah idk whats happening, before it used to work now it doesn't.
Here's what I found from some googling, no solutions though.

https://github.com/void-linux/void-packages/issues/29653
https://forums.opensuse.org/t/connman-is-not-working-properly-with-normal-user-privileges/134168

Connman version:
Code: [Select]
❯ pacman -Qi connman                                                                                                                                                                                                                     ─╯
Name            : connman
Version         : 1.43-3
Description     : Intel's modular network connection manager
Architecture    : x86_64
URL             : https://01.org/connman
Licenses        : GPL-2.0-only
Groups          : None
Provides        : None
Depends On      : dbus  gcc-libs  glib2  glibc  gnutls  iptables  libmnl  readline
Optional Deps   : bluez: Support for Bluetooth devices [installed]
                  iwd: for WiFi devices
                  openconnect: for VPN Support
                  openvpn: for VPN Support
                  pptpclient: for ppp support
                  wpa_supplicant: for WiFi devices [installed]
Required By     : connman-s6
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1720.37 KiB
Packager        : nikolar <[email protected]>
Build Date      : Mon 20 Jan 2025 06:26:10 AM EST
Install Date    : Mon 27 Jan 2025 06:56:04 PM EST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Running connmanctl as user
Code: [Select]
❯ connmanctl                                                                                                                                                                                                                             ─╯
Error getting services: Rejected send message, 3 matched rules; type="method_call", sender=":1.52" (uid=1000 pid=13721 comm="connmanctl") interface="net.connman.Manager" member="GetServices" error name="(unset)" requested_reply="0" destError getting peers: Rejected send message, 3 matched rules; type="method_call", sender=":1.52" (uid=1000 pid=13721 comm="connmanctl") interface="net.connman.Manager" member="GetPeers" error name="(unset)" requested_reply="0" destinatioError getting technologies: Rejected send message, 3 matched rules; type="method_call", sender=":1.52" (uid=1000 pid=13721 comm="connmanctl") interface="net.connman.Manager" member="GetTechnologies" error name="(unset)" requested_reply="0" destination="net.connman" (uid=0 pid=694 comm="connmand -n")
connmanctl> state
Error: Rejected send message, 3 matched rules; type="method_call", sender=":1.52" (uid=1000 pid=13721 comm="connmanctl") interface="net.connman.Manager" member="GetProperties" error name="(unset)" requested_reply="0" destination="net.connman" (uid=0 pid=694 comm="connmand -n")
connmanctl>

Running as root
Code: [Select]
❯ doas connmanctl                                                                                                                                                                                                                        ─╯
connmanctl> state
  State = online
  OfflineMode = False
  SessionMode = False
connmanctl>

connmanctl>

Any ideas?

Re: Unable to control connman as non-root user.

Reply #1
Weird that it just broke on its own. Seems to be a dbus issue. Have you tried rebooting?
Also, maybe this will help:
Quote
...
Who would've thought. I simply copied

/usr/share/dbus-1/system.d/connman.conf
(that is, the version without the "manager" line added)

to

/etc/dbus-1/system.d/connman.conf

and everything works fine now - both my user and sudo/root can now toggle wifi.

For reference, here is what my connman.conf currently looks like:
...

 

Re: Unable to control connman as non-root user.

Reply #2
Thank you so much it worked!