System policy prevents wifi scans (and root pass for power)
1
vote
1
answer
5497
views
The subject is an arch arm raspberry pi 3 (lxqt)
I am prompted every time when I open network manager or want to reboot for a root password.
I have the following modifications in my
/etc/sudoers
:
Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff,
/usr/bin/shutdown -h now Cmnd_Alias NETWORK = /usr/bin/netctl,
/usr/bin/nm-applet, /usr/bin/nm-connection-editor, /usr/bin/nm-online,
/usr/bin/nmcli, /usr/bin/nmtui, /usr/bin/nmtui-connect,
/usr/bin/nmtui-edit, /usr/bin/nmtui-hostname
%network ALL=(ROOT) NOPASSWD: NETWORK
%power ALL=(ALL) NOPASSWD: POWER
tried (ALL) and (ROOT) for both, neither did work.
My /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
file contains properly:
yes
yes
and added
yes
Still it did not fix my problem. Weirly enough even if I dont provide the root password the wifi scan for instance will go through and I see the available connections.
I read most posts (10 years old or so) but they did not fix my issue.
Asked by itarill
(133 rep)
Jun 10, 2020, 09:00 PM
Last activity: Sep 26, 2022, 07:08 AM
Last activity: Sep 26, 2022, 07:08 AM