Hi Timo, Needs root. We have iwlist too (in linssid-app/Getter.cpp).
Yesterday, my first try was remove all sudo and use the whole path in commands (as /sbin/iw). The result was only my machine being showed (because of iwlist, I think). My second try was change sudo by gksudo in code. Worked but iwlist was called each 5 seconds and the user must to provide the password. If using NOPASSWD in /etc/sudoers, a tab will blink in task bar (I use KDE) each 5 sec (yes, a tab created by gksudo). The solution: full root, as other similar programs. Cheers, Eriberto 2015-02-23 15:01 GMT-03:00 Timo Juhani Lindfors <timo.lindf...@iki.fi>: > Hi, > > Eriberto Mota <eribe...@debian.org> writes: >> I did a patch to force the program runs as root only and ignore the >> internal sudo commands. In manpage (created by me) , I explained how >> to use gksudo to run the program. The icon on desktop menu uses gksudo >> too. You can see the current packaging here[1]. > > Thanks for working on this. Running the UI as root is not very nice > either but definitely better than leaking user's password. > > Are root privileges really needed? The commands that linssid runs seem > to be "iw dev" and "cat /proc/net/wireless". Both of these seem to > return the same output as normal user here: > > oregano:~$ sudo iw dev > phy#0 > Interface wlan0 > ifindex 3 > type managed > oregano:~$ sudo cat /proc/net/wireless > Inter-| sta-| Quality | Discarded packets | > Missed | WE > face | tus | link level noise | nwid crypt frag retry misc | > beacon | 22 > wlan0: 0000 49. -61. -256 0 0 0 0 30 > 0 > > > oregano:~$ /sbin/iw dev > phy#0 > Interface wlan0 > ifindex 3 > type managed > oregano:~$ cat /proc/net/wireless > Inter-| sta-| Quality | Discarded packets | > Missed | WE > face | tus | link level noise | nwid crypt frag retry misc | > beacon | 22 > wlan0: 0000 55. -55. -256 0 0 0 0 30 > 0 > > Is there some other functionality that actually needs root privileges? > > > > -Timo -- To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAP+dXJcp4oeyGJE4FekeiZfm1ZrN4OU7-A=MVpX3CrAr=fc...@mail.gmail.com