LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-26-2005, 04:20 PM   #1
laurentwahl
Member
 
Registered: Nov 2004
Distribution: Fedora Core 4
Posts: 141

Rep: Reputation: 15
dhclient


I have two little problems with dhclient.
After running the dhclient with
Quote:
/sbin/dhclient ath0
my terminal and all other applications don't start any more. then I log out and log in and it works. how can I make it wark without logging out and in?

My second problem is, that I can run dhclient only as root. When I run it as a normal user, he says:
Quote:
can't create /var/lib/dhcp/dhclient.leases: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Open a socket for LPF: Operation not permitted
How can I set the permissions that I can run dhclient as normal user.
 
Old 05-26-2005, 06:36 PM   #2
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
Hello,
First off, I'd like to say I have _no_ wireless experience, but the following might work:

Add this to /etc/networks

iface wlan0 inet dhcp
wireless-essid home
wireless-key XXXXXXXXXXXXXXXXXXXXXXX

auto wlan0

but update the essid and key as needed.
This may not work, this is my shot in the dark.
GL,
-Jason
 
Old 05-27-2005, 03:25 AM   #3
laurentwahl
Member
 
Registered: Nov 2004
Distribution: Fedora Core 4
Posts: 141

Original Poster
Rep: Reputation: 15
I don't have a networks file.
And I don't want that dhclient runs at startup, because I only use wireless in my school, so it should only start when I type dhclient. But i want to do this without logging out afterwarts and I don't want to do this as root
 
Old 05-27-2005, 08:32 AM   #4
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
Logging out?

You know that you can just do this from a console, right? You don't have to log out and back in again.

Alternatively, you can use the sudo command by adding dhclient to the sudoers file. man sudo for details.
 
Old 05-29-2005, 04:14 PM   #5
laurentwahl
Member
 
Registered: Nov 2004
Distribution: Fedora Core 4
Posts: 141

Original Poster
Rep: Reputation: 15
I am new with linux, and I don't know how I can do this from a console
 
Old 05-29-2005, 08:06 PM   #6
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
Assuming you're up and running in Gnome:

Open a Gnome terminal.
At the $ prompt, type su (it might be su - instead of just su. RH is kind of goofy about root path), enter.
Enter your root password.
At the # prompt, type dhclient ath0.
exit.

Goggle for the One Page Linux Manual. Print it and keep a copy with you. Eventually, you should edit (or create if it's not there) the boot script for the interface.

Sudo allows you to give certain users permission to run commands that would otherwise only be available to root and would be an alternative to logging in as root.. It's not something to do cavalierly, and certainly a lesson for another day. Learn to use the man pages first.
 
Old 05-30-2005, 12:35 AM   #7
laurentwahl
Member
 
Registered: Nov 2004
Distribution: Fedora Core 4
Posts: 141

Original Poster
Rep: Reputation: 15
2Gnu said
Quote:
Assuming you're up and running in Gnome:

Open a Gnome terminal.
At the $ prompt, type su (it might be su - instead of just su. RH is kind of goofy about root path), enter.
Enter your root password.
At the # prompt, type dhclient ath0.
exit.
when I do this I can't open any more my applications, like firefox. then I log out, and back in(as the same user), then it works. sorry when i didn't express me clearly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dhclient greengrocer Linux - Newbie 1 10-27-2005 07:22 PM
I need dhclient but there is no one g-string 3 Linux - Networking 2 05-19-2005 03:42 PM
dhclient and 2.4.23 townfool Linux - Networking 1 12-16-2003 04:40 PM
dhclient and ddns? luischardon Linux - Networking 5 09-28-2003 04:30 AM
dhclient helloworld Linux - Networking 2 03-06-2001 07:57 PM


All times are GMT -5. The time now is 01:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration