WiFi down by default for root user

Kernels & Hardware, configuring network, installing services

WiFi down by default for root user

Postby MartinK » 2017-09-02 14:53

I have done a fresh install of Stretch on a notebook PC with ethernet port and WiFi. When logged in with my normal user account everything works as expected.

I typically run on WiFi, ethernet disconnected.

If I log in as root the WiFi interface is down, "ip address show" tells me "state DOWN". (If connected, wired ethernet is up).

For system maintenance I can login as my regular user then "su" to to have WiFi enabled or login as root and bring up WiFi with the command;

Code: Select all
ip link set dev wlp2s0 up

Is this normal behaviour? Does root user get no WiFi by default?
MartinK
 
Posts: 13
Joined: 2015-05-14 21:55
Location: United Kingdom

Re: WiFi down by default for root user

Postby GarryRicketson » 2017-09-02 15:02

I think so, it would not be a good idea to be using a wifi connection as root.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4464
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: WiFi down by default for root user

Postby MartinK » 2017-09-02 15:32

Thanks, I will not try and 'fix' it.

My guess is many 'desktop' users do their software updates via WiFi, I certainly do.
MartinK
 
Posts: 13
Joined: 2015-05-14 21:55
Location: United Kingdom

Re: WiFi down by default for root user

Postby GarryRicketson » 2017-09-02 15:49

Well, maybe I am misunderstanding the question or problem,
but yes, you normally can install packages using a wifi connection, That is how I install
my packages on my laptops,..
Are you saying you can not install or update packages using wifi ?
User avatar
GarryRicketson
 
Posts: 4464
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: WiFi down by default for root user

Postby stevepusser » 2017-09-02 16:42

It's probably not seen as a big problem, since all root tasks can be done in a normal user session, as you note. Maybe they want to discourage any root sessions.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: WiFi down by default for root user

Postby MartinK » 2017-09-02 18:02

I can install packages using Wifi, by giving myself root privileges in the conventional ways.

I previously ran Jessie on this same PC. WiFi was up after logging in as root so the behaviour now is different. However, Jessie was an in situ upgrade from Wheezy and goodness knows how many forgotten tweaks I may have applied in the last few years. I did a fresh install of Stretch to tidy up what had become a mess.

I was surprised when "apt-get update" failed after login as root, traced to my having no WiFi connection. Simple answer, don't login as root, I just found it strange that functions were not immediately available to root. The opposite to typical problem scenarios.
MartinK
 
Posts: 13
Joined: 2015-05-14 21:55
Location: United Kingdom

Re: WiFi down by default for root user

Postby GarryRicketson » 2017-09-02 18:07

I can install packages using Wifi, by giving myself root privileges in the conventional ways.

Well that is usually the correct and best way to do things.
User avatar
GarryRicketson
 
Posts: 4464
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable