You are not logged in.

#1 2008-11-13 19:54:28

djseomun
Member
From: Durham, NC
Registered: 2008-10-19
Posts: 35
Website

Do you have to be root to run dhcpcd?

By reading the wiki, I found out that I can connect to my school's wireless as follows:

ifconfig wlan0 up
iwconfig wlan0 essid GTwireless key (...)
dhcpcd wlan0

I then wrote a script containing #!/bin/bash and those three commands. It may not be the best way (and if it's not, please tell me a better way), but it works.

I'd like to run the script without being in superuser mode. Is it possible for a regular user to be able to run dhcpcd?

Last edited by djseomun (2008-11-13 19:54:44)

Offline

#2 2008-11-13 20:42:40

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

Re: Do you have to be root to run dhcpcd?

Take a look at netcfg, you can create a profile to connect to the wifi at school.


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

Offline

#3 2008-11-13 20:55:03

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: Do you have to be root to run dhcpcd?

djseomun wrote:

Is it possible for a regular user to be able to run dhcpcd?

Just configure sudo to do that, if you think you will need it often. Best way is Mr.Elendig's advice.

HTH.


syntaxerrormmm - Homepage

Offline

Board footer

Powered by FluxBB