Parrot 6.2 - Network-Manager - System Policy prevent Wi-Fi Scans

– Please Write here your help request –
I connecting to my Parrot OS 6.2 using XRDP.
my user is in the root-groups
When i click on the network-icon i received the popup in the screenshot.
I tried different thinks wich i found online. but nothing works.
like this:

thankfull for any help


  • ParrotOS iso in use:

  • Application used for flashing the iso:

  • Logs/Terminal output (use pastebin or similar services):

  • Screenshots:

If you want to scan wifi networks from a terminal, you would have to use sudo, i.e. a superuser, so it is expected that you would be asked for your superuser password to escalate privileges.

Are you installed on a pi, or is that the username?
It should be the password you chose at install time.

hi @Fred_Sheehan,
sorry for my bad explanation. My goal is to deactivate that popup. It appears always, when i click to network settings and this is annoying.
Yes it is installed on a pi and password is working.

As its a Pi i’d imagine your connecting remotely to it, and that causes polkit to have issues. You will need to add your user to the polkit group to prevent the pop ups;

sudo vim /etc/polkit-1/rules.d/allow-network-scans.rules 

Paste the following content, replacing the username you want to allow scans for.

polkit.addRule(function(action, subject) {

    if (action.id == "org.freedesktop.NetworkManager.wifi.scan" &&
        subject.user == "your-username-here") {
        return polkit.Result.YES;
    }
});

Save and exit. Restart polkit to apply the new rule via

sudo systemctl restart polkit

That should stop you having the pop ups, without opening up the whole system.

more info here on the excellant Arch wiki;
https://man.archlinux.org/man/polkit.8.en#AUTHORIZATION_RULES

1 Like

Now I’m wondering would it happen If I connect to a normal Linux machine remotely

i should put the username into the content… oh boy… embarrassing…
Thanks …

:rofl:

If you set up and connect via ssh as you might for admin purposes anyway, you have no issues.
Polkit only becomes a problem when you want to use RDP for that graphical desktop, by default remote users have no permissions to control anything with polkit.

You have to be careful not to be too liberal with polkit rules for remote access though, else it can leave a system very vulnerable. More systemd poettering nonsense…

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.