LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2018, 12:28 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Non-persistent NetworkManager connections


At work we have laptops that are used in the field for customer service. We need to connect to customer's wireless access points to test. We do not want NetworkManager saving these connections because over the months we end up with hundreds of connections being stored.

We want the default configuration to be not saving connections. Is that possible?

We want NM only to save a few common connection points.

I notice this can be done using nmcli (persistent/temporary) but I do not see anything about using the nm-applet GUI. Hopefully this is an option staring me in the face and I am blind.

Thanks.
 
Old 06-02-2018, 12:57 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Most of the time you can use the same connection. It should give a list of available access points. You don't need a new connection for each access point.

Last edited by AwesomeMachine; 06-02-2018 at 01:01 PM.
 
Old 06-02-2018, 02:12 PM   #3
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
I don't think that works because NM creates a new wireless connection based on the SSID and password. Perhaps I am missing something.
 
Old 06-02-2018, 10:47 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
That's right. Sorry. I guess either script with nmcli, or manually delete the connections after you use them. It might be difficult to incorporate temp connections into the gui, because it would be quite confusing what the actual meaning of 'temporary' is to many users.
 
Old 06-03-2018, 02:09 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
maybe cleaning out the directory in question is a good alternative?
maybe at boot?

maybe networkmanager has options to never store these connections - it has LOADS of options, but not many of them are accesible via nm-applet.

but NEVER storing connections will also prove problematic for the users of these laptops.
 
Old 06-03-2018, 11:17 AM   #6
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
It might be difficult to incorporate temp connections into the gui, because it would be quite confusing what the actual meaning of 'temporary' is to many users.
I am not asking for a redesign of NM. Just asking whether there is currently a way to configure persistent/temporary connections as the default.

Quote:
maybe cleaning out the directory in question is a good alternative?
Not a "good" alternative but perhaps the only choice.

Quote:
but NEVER storing connections will also prove problematic for the users of these laptops.
Users are techs. Storing some connections is sane, but the customer connections are one-time occurrences. The techs might not be at that customer's location again for years. No sense in these one-off connections cluttering the NM editor. With 500+ connections just opening the editor or editing a single connection takes a horribly long time. "Linux" gets blamed for being crappy and slow.
 
Old 06-03-2018, 01:50 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i see.
well, cleaning them out once per reboot sounds like a good compromise/workaround to me.

Quote:
Originally Posted by upnort View Post
Not a "good" alternative but perhaps the only choice.
hack it, store it in the back of your mind, and when the real solution comes along evtl., you can fix it properly.
 
Old 06-03-2018, 06:16 PM   #8
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
A security issue with this design is all of the respective connection files contain passwords in clear text. Should such a laptop be compromised or stolen all of those passwords are accessible with a Live USB.
 
Old 06-03-2018, 07:42 PM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by upnort View Post
A security issue with this design is all of the respective connection files contain passwords in clear text. Should such a laptop be compromised or stolen all of those passwords are accessible with a Live USB.
The last Fortune 500 company I worked for encrypted the hard drives of all laptops. New laptops were not allowed off the property until that encryption was done following installation and configuration. It's been too long, so I'm not sure exactly how (what software...maybe PGP?) they used to do that, but every bootup of the laptop required entry of passphrase prior to normal login to the laptop.

I think cleaning up the unwanted connections/files is probably the best way to go...or, alternatively, restoring connections to the "defaults" you want/need to keep.

Last edited by scasey; 06-03-2018 at 07:45 PM.
 
Old 06-03-2018, 08:19 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Alternatively you could use another user for off-site connections. Perhaps a site specific user. Probably too much for mere users.

I tend to not use network-manager. Although I'll use nmtui for "others" laptops. Partly old habits more than a reasonable choice. At home I connect via ethernet to another device that connects to the wifi. In this way changes to the wifi, like new leases only results in a delay, not a disconnect for existing connections. Plus with 4+ devices I'd like to think that my radiation exposure is reduced with all but one using ethernet only. But mostly better positioning for the wifi device and a better connection.
 
Old 06-03-2018, 08:30 PM   #11
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
The last Fortune 500 company I worked for encrypted the hard drives of all laptops.
This seems to be the only solution for this horrible security design.

I have mentioned encryption to the owner although we did not discuss in detail or earnest. The laptops are EFI and have Windows 7 preinstalled. Ubuntu got installed by a previous employee who did not consider security and was/is unaware of various Linux related security issues. To encrypt though I think a reinstall is required.

I agree the laptops should be encrypted based on common sense security principles, even if NM was not used. In the field I use my personal laptop for work related tasks because I use encryption and SSH key pairs, passwords, etc. The laptops used at work can't protect me if they suddenly grow legs.

Overall I am really perturbed with NM.
 
Old 06-04-2018, 01:44 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Send that data to a ramdisk maybe. On reboot the info is lost.
 
Old 06-04-2018, 04:32 PM   #13
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by upnort View Post
This seems to be the only solution for this horrible security design.
...
To encrypt though I think a reinstall is required.
...
Actually, when they "refreshed" a user's laptop (issued a new one), the encryption was the last thing that was done. The OS was setup (Windows 7), the user's files were transferred to the new laptop, any user-specific software not include in the installation installed, THEN the encryption was started...so no, I don't think a reinstall is required -- it's just something you can do anytime, tho, AFAIK, it can't later be undone.

Again, this was a Fortune 500 (maybe 100) company, so they purchased the license to the software (again, I think it was PGP, but not sure)

Sorry I can't help with NetworkManager...
 
Old 06-05-2018, 02:00 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by jefro View Post
Send that data to a ramdisk maybe. On reboot the info is lost.
elegant.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
networkmanager not accepting non-root connections rabbit2345 Linux - Networking 1 12-24-2011 06:59 PM
NetworkManager : edit connections --> no access to eth0 jonaskellens Linux - Newbie 5 09-28-2009 07:02 AM
persistent static routes, not so persistent Hewson Linux - Networking 4 04-27-2007 05:09 PM
Persistent samba connections with password saved? BrianK Linux - General 4 11-01-2005 05:47 PM
Apache, PHP and Mysql - persistent connections madsjakob Linux - Software 0 08-23-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration