Educational question about wpa_supplicant, NetworkManager, and user privileges

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Colm
Level 1
Level 1
Posts: 32
Joined: Sun Jan 15, 2017 12:15 am

Educational question about wpa_supplicant, NetworkManager, and user privileges

Post by Colm »

I've been experimenting with networking CLI tools for learning purposes, and sometimes I end up (intentionally or otherwise) killing the wpa_supplicant process in the default network namespace. NetworkManager can't connect to anything (wired or wireless) when I do this. No biggie, though, I just run:

Code: Select all

# systemctl restart wpa_supplicant
# systemctl restart NetworkManager
And I'm back in business. But I was hoping someone could help me understand a few things?

1) Why does killing wpa_supplicant interfere with NetworkManager's ability to connect me to unsecured networks including regular ethernet? I would have assumed wpa_supplicant was only for secure networks i.e. WPA/WPA2, and I know it can be used for 802.1X but I guess it does more than that-- or it wouldn't totally break NetworkManager? My initial web search didn't reveal any helpful documentation on this.

2) After NetworkManager restarts and I get network connectivity back with the desktop applet, why are certain drop-down options grayed out like NetworkManager doesn't have privileges to execute them or something? Why exactly does this happen? (i.e., beyond "because you restarted the processes as root"-- Right, but isn't that how it happens at boot time anyway? Why does it do this when I restart manually, but not when they are initially started?)

(Specifically, "Disconnect," "Connect to Hidden Wi-Fi Network..." and "Create New Wi-Fi Network..." when I left click on the applet, and when I right click, also "Enable Networking," "Enable Wi-Fi," and "Edit Connections..." are grayed out)

3) Regarding #2, how can I re-enable networking but restore regular user privilege to NetworkManager to un-gray-out those options?


Thanks,
Colm
(Using Linux Mint 20.2 MATE, Kernel 5.4.0-109-generic but same results on other recent kernels. Various ethernet and wifi hardware.)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Educational question about wpa_supplicant, NetworkManager, and user privileges

Post by deepakdeshp »

Did you see the man for wpa_supplicant. If you need details for any Linux topic please see it's man. Most probably there will be a man in place.
https://linux.die.net/man/8/wpa_supplicant

Code: Select all

 man man
for information on man.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Networking”