Reply
Thread Tools
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#131
Hi.
I'm tinkering with the scripts, and I would like to know how to get a list of nearby Wifi HotSpots.
I have tried iwconfig, iwlist and iw, but I can only get information about my own AP.
Anybody has managed to make this work?
Regards.

Last edited by pasko; 2014-07-05 at 08:40.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#132
Originally Posted by pasko View Post
Hi.
I'm tinkering with the scripts, and I would like to know how to get a list of nearby Wifi HotSpots.
I have tried iwconfig, iwlist and iw, but I can only get information about my own AP.
Anybody has managed to make this work?
Regards.
iwlist scan
 

The Following User Says Thank You to For This Useful Post:
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#133
Hi.
It worked!!
Thank you.
Regards.
 
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#134
Hi.
Unfortunately, it only works if I execute it as user/developer: after issuing a devel-su, it will only show the connected Wifi ESSID.
The problem is that meePrey is executed as root and therefore it will not show the nearby hotspots.
Any further suggestions?
Regards.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#135
?

What about
Code:
develsh
iw wlan0 scan
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#136
Originally Posted by pasko View Post
Hi.
Unfortunately, it only works if I execute it as user/developer: after issuing a devel-su, it will only show the connected Wifi ESSID.
The problem is that meePrey is executed as root and therefore it will not show the nearby hotspots.
Any further suggestions?
Regards.
hm strange, here it actually works only as root
 

The Following User Says Thank You to For This Useful Post:
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#137
Hi.
I have a second device and it's the same.
It also works if, as 'user' I enter develsh and then the iwlist command. This is weird!!!
Is there any way to run meePrey as 'user'?
Regards.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#138
its because user and developer accounts dont have the permission to access network interfaces at that level, so, on N9 (and Jolla) it must run as root.
On Jolla using sudo, You could change that, so the prey.sh doesnt need to run as root (my sudo supports permission on a per app level, supporting /ets/sudoers.d) but, on N9, I dont think sudo supports that level.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#139
On my N9 it is enough to enter develsh.
I get same output with 'iw wlan0 scan' as user and as root.
Furthermore even as root I do need develsh else no permission.

'iwlist' is part of ?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#140
Originally Posted by nieldk View Post
its because user and developer accounts dont have the permission to access network interfaces at that level, so, on N9 (and Jolla) it must run as root.
On Jolla using sudo, You could change that, so the prey.sh doesnt need to run as root (my sudo supports permission on a per app level, supporting /ets/sudoers.d) but, on N9, I dont think sudo supports that level.
Hi.
This is what common sense says it should be. But I see the opposite.
What I am seeing in my N9 is that unprivileged users can scan all APs, and root can't.
Regards.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:36.