wifi icon indicating copy to clipboard operation
wifi copied to clipboard

iwlist need root privilege

Open jjehl opened this issue 8 years ago • 11 comments

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)

jjehl avatar Dec 01 '16 15:12 jjehl

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?

rockymeza avatar Dec 04 '16 02:12 rockymeza

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 : iwlist_scan = subprocess.check_output(['sudo','/sbin/iwlist', interface, 'scan'], stderr=subprocess.STDOUT)

jjehl avatar Aug 02 '17 06:08 jjehl

Hi,

I've altered quite a bit in upcoming 0.8.0 release. It could use some testing and I need to tick some boxes to see if things are stable enough for my liking. Most notably, the library had far more testing then the command and I should add some docs about the 2 ways that sudo can be supported without requiring a password.

I'll have 0.8.0rc1 up shortly. If you could give it a test drive that would be most welcome.

melvyn-sopacua avatar Aug 07 '17 16:08 melvyn-sopacua

Note: This project is unmaintained.

llazzaro avatar Aug 07 '17 16:08 llazzaro

check https://github.com/llazzaro/pyiw

llazzaro avatar Aug 07 '17 16:08 llazzaro

Not anymore. I'm taking over maintenance.

melvyn-sopacua avatar Aug 07 '17 16:08 melvyn-sopacua

Great! do you have pr merge permission?

llazzaro avatar Aug 07 '17 17:08 llazzaro

Please someone should start maintaining this, and fix bugs. I am having serious errors screenshot from 2017-09-17 18-20-38

rikoz avatar Sep 17 '17 17:09 rikoz

@rikoz Please report that at pyiw. Thank you.

melvyn-sopacua avatar Sep 17 '17 19:09 melvyn-sopacua

ok, will i find you there @melvyn-sopacua

rikoz avatar Sep 17 '17 20:09 rikoz

@rikoz report it here: https://github.com/llazzaro/pyiw I sent you a hang out invite.

llazzaro avatar Sep 17 '17 22:09 llazzaro