|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
ifconfig and superuser
I noticed a difference when using ifconfig(8) as a normal user and a superuser, and I don't get why.
With a single ifconfig(8), I can see my wifi SSID : Code:
$ ifconfig iwn scan | grep nwid ieee80211: nwid <my_wlan> Code:
$ doas ifconfig iwn scan | grep nwid ieee80211: nwid <my_wlan> nwid <my_neighbours_wlan> I can understand it's necessary have su permissions to modify anything, but just to get a SSID's list ?
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD |
|
|||
Are you actually able to scan when not root? I can't...
The first grep is picking up the line that's already configured with your SSID whereas the second picks up that line plus the scan lines (fyi, the "ieee80211:" prefix gives it away that it's not a line produced by a scan). |
|
||||
Thanks ibara, the output is clearer.
I still need a doas(1) to scan, so I can only scan as root. No scan for simple users reduces PEBKAC issues for sure, but still...
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD Last edited by LeFrettchen; 29th October 2017 at 09:12 PM. Reason: Link maniac... |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ifconfig and ssh question | frcc | OpenBSD Security | 3 | 21st August 2013 12:02 PM |
PF - ifconfig problem | ripp3r | OpenBSD Security | 5 | 12th December 2010 04:10 PM |
need some basic help on ifconfig | daemon-dd | FreeBSD General | 4 | 29th July 2008 03:21 PM |
FreeBSD's Ifconfig for WEP | tz24 | FreeBSD General | 15 | 13th June 2008 02:17 AM |
ifconfig problem | ichigo | OpenBSD General | 3 | 20th May 2008 10:59 PM |