Only root is able to scan wifi #51
Replies: 1 comment
-
It looks like this error gobolinux/GoboNet#5 (comment) Indeed while researching I have found that Here are some solutions: https://unix.stackexchange.com/questions/169212/iwlist-scanning-without-root-privileges Most of them are about running the iwlist command with sudo but prevent prompting for a password: Another one is to set the Or setting capabilities Or straight out using wpa_supplicant which works without root for scanning: We'll have to consider how to fix this in our tooling. I tend to the capabilites based solution. Thanks for posting! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While installing Gobolinux on real hardware, I have stuck on this problem described before:
https://github.com/orgs/gobolinux/discussions/40
l decided to abort the installation, reboot and use a Guix live cd to boot it via a bit of grub-fu.
Logging in as non-root, I tried to use the network widget on Awesome, however it did not recognize wireless networks.
I looked at htop to investigate what was happening, and noticed that the widget calls
iwlist scan
. So I tried to run it manually.And here we are: if it is ran by root the scan works OK, but the non-root user receives a "no scan results".
How can I solve this problem and allow non-root users to scan and possibly configure network/wifi?
Beta Was this translation helpful? Give feedback.
All reactions