I'm currently configuring my newly installed archlinux arm on my raspberry pi. I'm an ArchLinux desktop user. However, the arm version of it looks different. On my desktop, if the user is in the group wheel, it is authorized to use commands to control WLAN connections like:
$this->bbcode_second_pass_code('', '$ nmcli device wifi-iframe connect SSID password PASSWORD')
It will succeed without any pop-out without any interruptions on my desktop.
However, on the ArchLinux Arm, I got the following error:
$this->bbcode_second_pass_code('', 'Error: Device 'wlan0' (/org/freedesktop/NetworkManager/Devices/3) disconnecting failed: org.freedesktop.NetworkManager.network-control request failed: not authorized
Error: not all devices disconnected.')
It looks like there is something to do with polkit. However, neither on my desktop nor my raspberry pi have local configurations in /etc/polkit-1/rules.d , and files in /usr/share/polkit-1/actions are identical. Also files in /usr/share/polkit-1/rules.d are not related to NetworkManager at all.
I'm currently stucked on how does org.freedesktop.NetworkManager.network-control works. Any ideas will be helpful except advising me to run nmcli with sudo. I'm not a big fan of using sudo frequently.