You are not logged in.

#1 2015-09-15 03:14:12

bibek22
Member
From: Nepal
Registered: 2015-09-10
Posts: 90

[SOLVED]Why do I need root privilege to connect to the wifi?

I want to be able to connect to the wifi on each login or better yet on each reboot/boot. I am using netctl up untill now which needs me to be rooted.
But I am sure there must be a way to do it without root. I am guessing adding a user to some group to allow hardware acces would do it?

Last edited by bibek22 (2015-09-16 07:46:34)

Offline

#2 2015-09-15 03:26:46

smurnjiff
Member
Registered: 2007-06-25
Posts: 211

Re: [SOLVED]Why do I need root privilege to connect to the wifi?

Generally, modifying network interfaces requires root permissions.  Have you tried configuring sudo to use netctl?  Another option is to use a GUI to manage your WiFi connections.

Offline

#3 2015-09-15 04:26:10

bibek22
Member
From: Nepal
Registered: 2015-09-10
Posts: 90

Re: [SOLVED]Why do I need root privilege to connect to the wifi?

Well, yeah. sudo netctl works. But I want to automate the process. I want it to do so on each login session. I am not sure how I should go about doing it. I guess, I could do it using cron. But I am not famililar with cron so much. I added the follwing line to the autostart file in openbox configuration which gets executed each time I startx:
sudo netctl start <profile>

I was hoping I'd be prompted to enter root password. But that doesn't happen and connection isn't established.
I've seen distros allowing even guest users to connect to and switch BSS. I don't know how to do that. any suggestions?

Offline

#4 2015-09-15 04:29:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]Why do I need root privilege to connect to the wifi?

Just set it up to work when you boot. The wiki page has the details.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-09-15 05:23:19

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: [SOLVED]Why do I need root privilege to connect to the wifi?

As Jason wrote above. Look at the wiki. You can enable netctl / auto service

Offline

#6 2015-09-15 11:29:36

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED]Why do I need root privilege to connect to the wifi?

Or use NetworkManager, which works as a normal user trough the magic™ of polkit.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2015-09-16 04:59:33

bibek22
Member
From: Nepal
Registered: 2015-09-10
Posts: 90

Re: [SOLVED]Why do I need root privilege to connect to the wifi?

Systemd is very much new to me. Also It wasn't quite easy thing to grasp. I've been through that wikipage before but it was kinda overwhelming. Now that I've learnt more about systemd/ctl, it isn't so any more.
Thanks everyone!

Last edited by bibek22 (2015-09-16 05:00:19)

Offline

Board footer

Powered by FluxBB