LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-31-2019, 11:11 AM   #1
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
NetworkManager - wifi autoconnect not working UNLESS "all users may connect to this network" enabled


I've noticed some inconsistencies with NetworkManager auto-connecting on my 3 Slackware64-current boxes that are running NetworkManager as their primary means of managing network and wifi connections.

None of these 3 machines is making use of rc.inet1 to connect to an internet connection or any other tools such as wicd.

Essentially, some connections were auto-connecting and auto-reconnecting (eg, upon resume from suspend) and some were not.

I searched the forum and found this old topic:

https://www.linuxquestions.org/quest...ng-4175606533/

in which it was recommended to enable the option "All users may connect to this network" (using the nm-applet nomenclature).

Turns out for me this WAS the solution, and the connections that were autoconnecting did have that option enabled, and those that were not did not.

However, I do not think this is the intended behaviour of NetworkManager.

Looking at what the GUI is doing, essentially it changes the applicable .nmconnection file in /etc/NetworkManager/system-connections/. If "All users may connect" is enabled, it changes the line from "permissions=user:username_that_created_the_connection:;" to "permissions=".

I think NetworkManager is intended to autoconnect for that particular user, while logged in, and I don't think "all users may connect" is meant to be mandatory to be enabled for autoconnect to work.

I've seen some reports from some distros that they used to have the same issue a few years ago, but have possibly fixed the issue since then.

See e.g. this bug report from Ubuntu from a few years ago:

https://bugs.launchpad.net/ubuntu/+s...r/+bug/1354924

... not particularly helpful since it just says "fixed in 17.04" and doesn't say why, and doesn't say what the fix was.

Anybody have any clues here? I'm wondering if it may be a PolicyKit, dbus or other sort of configuration issue. Or maybe a function of the fact that we're not using systemd.
 
Old 08-31-2019, 02:07 PM   #2
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by Poprocks View Post
See e.g. this bug report from Ubuntu from a few years ago:

https://bugs.launchpad.net/ubuntu/+s...r/+bug/1354924

... not particularly helpful since it just says "fixed in 17.04" and doesn't say why, and doesn't say what the fix was.
If it was "fixed in 17.04", then it must have been "unfixed" later on, because I still keep running into this issue under Ubuntu 18.04. I have simply gotten into the habit of allowing all users to connect to the wireless network and everything works fine.
 
Old 08-31-2019, 02:11 PM   #3
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Original Poster
Rep: Reputation: 279Reputation: 279Reputation: 279
Quote:
Originally Posted by luvr View Post
If it was "fixed in 17.04", then it must have been "unfixed" later on, because I still keep running into this issue under Ubuntu 18.04. I have simply gotten into the habit of allowing all users to connect to the wireless network and everything works fine.
Well, that's interesting, because I thought I also saw some reports from around 2017 indicating that Ubuntu had patched nm-applet (or equivalent) to enable the checkbox for "all users may connect" by default.

So if that's the "fix" that's kind of silly. Maybe I'll report this upstream and see what, if anything, the devs have to say about it.
 
Old 08-31-2019, 02:30 PM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by Poprocks View Post
So if that's the "fix" that's kind of silly.
Agreed. I ran into this too when Networkmanager upgraded. I enable all users.
 
  


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 doesn't autoconnect WiFi although it is configured to do so berndbausch Linux - Networking 1 05-01-2019 09:51 PM
[SOLVED] wicd wifi autoconnect clivarius antiX / MX Linux 3 07-22-2018 02:30 PM
[SOLVED] F14 NetworkManager to autoconnect OpenVPN at startup sergani Linux - Networking 4 07-06-2011 12:39 PM
Wireless autoconnect (error for wireless request "set Nickname" (8B1C)) hellasyoda Slackware 7 05-19-2008 01:12 PM
IPCop - 1 network cannot surf internet unless proxy is enabled, other network can Micro420 Linux - Networking 0 08-25-2007 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:05 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