DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3 Weeks Ago
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: Bronvaux, France
Posts: 255
Default 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>
With a superuser ifconfig(8), I can see my wifi SSID and my neightbour's too :
Code:
$ doas ifconfig iwn scan | grep nwid
ieee80211: nwid <my_wlan>
           nwid <my_neighbours_wlan>
Why can't I see my neightbour's wlan as a single user ?
I can understand it's necessary have su permissions to modify anything, but just to get a SSID's list ?
__________________
The secret of wisdom is not wisdom itself, it's the road that leads us there.
Reply With Quote
  #2   (View Single Post)  
Old 3 Weeks Ago
ibara's Avatar
ibara ibara is offline
WR Slowest SNOBOL4 laptop
 
Join Date: Jan 2014
Posts: 515
Default

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).
Reply With Quote
  #3   (View Single Post)  
Old 3 Weeks Ago
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: Bronvaux, France
Posts: 255
Default

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...
__________________
The secret of wisdom is not wisdom itself, it's the road that leads us there.

Last edited by LeFrettchen; 3 Weeks Ago at 09:12 PM. Reason: Link maniac...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick