Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

iwlist need root privilege #107

Open
jjehl opened this issue Dec 1, 2016 · 11 comments
Open

iwlist need root privilege #107

jjehl opened this issue Dec 1, 2016 · 11 comments
Assignees
Milestone

Comments

@jjehl
Copy link

jjehl commented Dec 1, 2016

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)

@rockymeza
Copy link
Owner

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?

@jjehl
Copy link
Author

jjehl commented Aug 2, 2017

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 jjehl closed this as completed Aug 2, 2017
@melvyn-sopacua
Copy link
Collaborator

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 melvyn-sopacua reopened this Aug 7, 2017
@melvyn-sopacua melvyn-sopacua added this to the 0.8.0 milestone Aug 7, 2017
@llazzaro
Copy link

llazzaro commented Aug 7, 2017

Note: This project is unmaintained.

@llazzaro
Copy link

llazzaro commented Aug 7, 2017

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

@melvyn-sopacua
Copy link
Collaborator

Not anymore. I'm taking over maintenance.

@melvyn-sopacua melvyn-sopacua self-assigned this Aug 7, 2017
@llazzaro
Copy link

llazzaro commented Aug 7, 2017

Great! do you have pr merge permission?

@rikoz
Copy link

rikoz commented Sep 17, 2017

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

@melvyn-sopacua
Copy link
Collaborator

@rikoz Please report that at pyiw. Thank you.

@rikoz
Copy link

rikoz commented Sep 17, 2017

ok, will i find you there @melvyn-sopacua

@llazzaro
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants