cali_coder
Posts: 13
Joined: Tue Jun 21, 2016 5:21 am

Forget a Wifi Network and Ethernet

Thu Jun 23, 2016 4:47 am

Hello all,

How does one forget a Wifi network? I've noticed Raspbian has a pretty stripped down preferences menu and I can't find a GUI interface to forget a wifi network. Terminal commands that will do this are welcome.

Also if the Raspberry Pi is connected to ethernet but also has Wifi networks available, will it default to the ethernet or the wifi?

Thanks!

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Forget a Wifi Network and Ethernet

Thu Jun 23, 2016 5:13 am

cali_coder wrote:Hello all,

How does one forget a Wifi network? I've noticed Raspbian has a pretty stripped down preferences menu and I can't find a GUI interface to forget a wifi network. Terminal commands that will do this are welcome.

Also if the Raspberry Pi is connected to ethernet but also has Wifi networks available, will it default to the ethernet or the wifi?

Thanks!
One way is to click on your SSID and enter a bogus PSK such as: 12345678
Otherwise you will need to edit: /etc/wpa_supplicant/wpa_supplicant.conf

Both Ethernet and WIFI appear to be active at the same time or at least I have opened 2 SSH sessions at the same time.....1 using the WIFI IP and the other using the Ethernet IP.
The Ethernet seems to take priority.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Forget a Wifi Network and Ethernet

Thu Jun 23, 2016 6:20 am

Just to add is there actually a way or gui alternative that allows quick forgetting.
I ask as its a security risk as the setting file as above, is not obfuscated/encrypted in some way. So in our school if anyone takes one home or connects to the none open network, then all keys are easily available.

cali_coder
Posts: 13
Joined: Tue Jun 21, 2016 5:21 am

Re: Forget a Wifi Network and Ethernet

Thu Jun 23, 2016 6:28 am

klricks wrote:
cali_coder wrote:Hello all,

How does one forget a Wifi network? I've noticed Raspbian has a pretty stripped down preferences menu and I can't find a GUI interface to forget a wifi network. Terminal commands that will do this are welcome.

Also if the Raspberry Pi is connected to ethernet but also has Wifi networks available, will it default to the ethernet or the wifi?

Thanks!
One way is to click on your SSID and enter a bogus PSK such as: 12345678
Otherwise you will need to edit: /etc/wpa_supplicant/wpa_supplicant.conf

Both Ethernet and WIFI appear to be active at the same time or at least I have opened 2 SSH sessions at the same time.....1 using the WIFI IP and the other using the Ethernet IP.
The Ethernet seems to take priority.
Thanks! I deleted the network out of this file and rebooted and now it's gone.

As a note, I tried to be clever and enter a new password, but it just remembered the old one.

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Forget a Wifi Network and Ethernet

Thu Jun 23, 2016 6:32 am

Why would you? Do you mean like one that you previously connected to? There are CLI commands that do what the gui's do in a user friendly manner.

If the network you connect to is not in the saved list, it will just stay there, until you edit it out in the file saved in /etc.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Forget a Wifi Network and Ethernet

Thu Jun 23, 2016 9:20 am

bensimmo wrote:...I ask as its a security risk as the setting file as above, is not obfuscated/encrypted in some way. So in our school if anyone takes one home or connects to the none open network, then all keys are easily available.
Not necessarily. The /etc/wpa_supplicant/wpa_supplicant.conf file requires admin privileges to open, so even if you connected to an open network, and someone else was snooping, they would need to know the admin login to see the contents of that file.

On the other hand, if the default pi/raspberry is still active... :twisted:

Fix for that would be to set up a new user (or users) and delete the default pi account (I just set a random password for pi on my system).

Or... just don't connect to open networks...
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Forget a Wifi Network and Ethernet

Fri Jun 24, 2016 3:50 pm

the problem there is many tutorials for children (education) rely on Pi/Raspberry to be there and the sudo command to be open for use.
A simple obfuscated text file would solve that, well until the learn more and can then read it, but at least that's a sort of win for education ;-)

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Forget a Wifi Network and Ethernet

Fri Jun 24, 2016 5:00 pm

bensimmo wrote:the problem there is many tutorials for children (education) rely on Pi/Raspberry to be there and the sudo command to be open for use.
A simple obfuscated text file would solve that, well until the learn more and can then read it, but at least that's a sort of win for education ;-)
Unless the children are specifically being taught about using Linux, there is no need for them to have admin rights.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Forget a Wifi Network and Ethernet

Sat Jun 25, 2016 8:11 am

But if the guides on the this website reference sudo, do they not need admin rights.

There is nothing on the site, that I have found, that demonstrates to teachers, techs and club users on how to lock down the Raspian system?
It's NOOBs installed Raspian that is/will be used.
There are no setup configuration in raspi-config that I can see to use?

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Forget a Wifi Network and Ethernet

Sun Jun 26, 2016 10:49 am

If you are setting up computers for students, then you pre-install what they will need and set them up as normal (non-admin) users.There are probably guides for such things on the foundation's web site (http://www.raspberrypi.org), but even if there isn't, it's not rocket science, and I'm sure there are guides for Debian (base OS for Raspbian).

To add a user with their own /home folder: sudo adduser username
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Forget a Wifi Network and Ethernet

Sun Jun 26, 2016 10:52 am

bensimmo wrote:the problem there is many tutorials for children (education) rely on Pi/Raspberry to be there and the sudo command to be open for use.
A simple obfuscated text file would solve that, well until the learn more and can then read it, but at least that's a sort of win for education ;-)
That's one of the reasons Pinet exists (although it only works with a wired network).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Forget a Wifi Network and Ethernet

Sun Jun 26, 2016 1:56 pm

I'll have a look at PiNET, these are not for use as desktop computers but for learning about computers. Using the gpio/attachments/running program at start/fiddling with.
They need to update them, need to add python modules or program if they want, they need to be able to follow the foundation published education/learn/make articles.
Teachers, techs are not going to want to do all this for them and then have to go into every pi SD card and remove network details.

Maybe it something the foundation/volunteer Raspian helpers can look at. Improve general school security of a default Raspian with them by default. Maybe an education edition?
But that out of context for the OPs post.

We have and other places have open wifi networks anyone can access so that not a problem but the net nanny restrictions are high.
It's unfortunately needed in the current climate of ransomeware, even the password protected networks are almost as locked down. But with schools going down to ransomeware this is security we have to out up with.
Unfortunately this makes it quite difficult to use the internet :o


Is there any GUI solution to lock access to that file while also allowing them to add and forget a connection similar to the current connection system (on the taskbar, notification area)
Or a solution to make that file not normally human readable?

Getting all the teachers and techs to learn the ins and outs of Raspian it not something I want to do. It needs to be simplified security by default.
Or is this just something Raspian is not capable of?

Lots of question I know but, I don't know and don't have the time to delve too deep into it other than personal time.

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Forget a Wifi Network and Ethernet

Mon Jun 27, 2016 12:32 am

You could set up an isolated network in the classroom for the Pi computers. I'm not aware of any ransomeware that works on Linux (and certainly not on Raspbian). Lock the network down to the MAC addresses of the Pi computers only, so if the kids try and use any keys they manage to find on the SD card, it won't work for other computers (well, until they figure out MAC address spoofing...).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Forget a Wifi Network and Ethernet

Mon Jun 27, 2016 6:15 am

HawaiianPi wrote:You could set up an isolated network in the classroom for the Pi computers. I'm not aware of any ransomeware that works on Linux (and certainly not on Raspbian). Lock the network down to the MAC addresses of the Pi computers only, so if the kids try and use any keys they manage to find on the SD card, it won't work for other computers (well, until they figure out MAC address spoofing...).
or take the dongle out and use that :lol:
I have setup that sort of setup, so they are isolated, but they run through the more determined NetNanny, the move to https website is the biggest paint as it needs to rip them apart and then they all fail the security. Adding site is just a continous pain. The Pi's are small fry in the scheme of an Education system networks, time, money and effort just cannot be put into them. It's down to the interested techs (or teachers if you are lucky) to get things moving.


Is there any other form of WiFi security the Pi can use that does not need preshared keys ?

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Forget a Wifi Network and Ethernet

Mon Jun 27, 2016 6:36 am

The Wifi keys come from the Wifi Access Point, not from the device. If the students are going to save their programs on a server and want to install code on the Micro SD cards, you really need to setup a Lab type setup, that only the Server and the workstations with the SD card readers are attached to, or you as the teacher, handle installing any programs to the SD cards.

Keep the Lab Isolated behind its own Router from the main network for the school. The school should not have any open wifi, so that no one but administration and teachers can only get on the school's network.

Learning the basics of Linux are simple. There are plenty of cheat sheets out there for the simple codes. Debian Wiki and Arch Wiki are the best go to resources in finding information on the meat and potatoes of Linux.

Python is easy, which you really need to learn and understand. Or else you are going to be taught by your students how to write code and micro-controllers.

Murphysboro, IL schools have been teaching students technology in the classroom for a while. Your best thing is to get into some Python classes or find a local Unix/Linux group to find those who are able to get you on the right track. There are plenty of us on here that have a varied level of experience dealing with Linux and the various codes.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Forget a Wifi Network and Ethernet

Mon Jun 27, 2016 11:19 am

There are no servers involved w.r.t saving data unless you wish to class GIT or OneDrive etc as such, the open Wi-Fi's are all seperated from the internal, even the passworded Wi-Fi are seperated from each other, but all still go through a netnanny(etc.) not controlled directly by us.
Things like this are beyond any 'clubs' capability.

The Pi's are there for the pupils to learn and play with, guided on where to look and then they go off and do, they are free to go ask D&T for help with the physical aspect, ICT for the python programming if they do any.

The AP we currently use is setup like any home router is setup. Standard WPA2-PSK/AES So the key is entered on the device as they would do at home, it doesn't care where it came from, the 'password' is now on the device, open to read by default. Again this is then readable to all, give raspberry devices don't make this difficult to get access to.
To be fari accessing out 'Pi' network is not problm at all, there's not much hey can do with it.

But if the kids take them home, or staff even, and use the GUI to access their home WiFi and do not have the ability to remove with a forget like in Android or similar of which they are used to. Then it's open for anyone with a little knowledge, which I hope they would have, to then use that key.
It's also if any staff do connnect it to the more 'internal' WiFi networks without understanding they may now have given the code to pupils.

You're talking about people who have little interest in learning the OS and are used to devices where security is setup for them by default.
Not bad learning about how to do it, but all are busy doing more important things unless they have a deep interest.
This is the target audience of RaspberryPi originally

I wonder how other schools/clubs in the UK solve these problem (or possibly not even thought of it?)


Anyway, it's gone beyond the simple question of

Is there actually a way or gui alternative that allows quick forgetting.
i.e. Is there a better Netwroking setup for the desktop, similar to windows and android quick user friendly yet functional setups[/i]
If so I can switch this for our standard images.

Return to “Beginners”