-
Notifications
You must be signed in to change notification settings - Fork 152
iwlist need root privilege #107
Comments
Hi @jjehl, All of the commands really need administrative access in order to work correctly. I tried to note this in the docs. Maybe it's not obvious enough? |
In my case I really need to not use root acount for security reason. What I did is to use sudo (addind command in visudo) and change the command by : |
Hi, I've altered quite a bit in upcoming 0.8.0 release. I'll have 0.8.0rc1 up shortly. If you could give it a test drive that would be most welcome. |
Note: This project is unmaintained. |
Not anymore. I'm taking over maintenance. |
Great! do you have pr merge permission? |
@rikoz Please report that at pyiw. Thank you. |
ok, will i find you there @melvyn-sopacua |
@rikoz report it here: https://github.com/llazzaro/pyiw |
the call in scan.py line 38 :
subprocess.check_output('/sbin/iwlist', 'wlan0', 'scan'], stderr=subprocess.STDOUT) will not return the total list of wlan unless your are excecuting the script under root account.
With normal user you should use : subprocess.check_output(['sudo','/sbin/iwlist', 'wlan0', 'scan'], stderr=subprocess.STDOUT)
The text was updated successfully, but these errors were encountered: