Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.