You are not logged in.
I got archlinux + openbox installed. I would like to set netcfg to autostart with openbox.
I just need to put "netcfg -u "MyEssid" in openbox's autostart.sh script. But there is a problem. Netcfg needs to be run as root.
I tried to put this lines in my sudoers file but it still tells me netcfg needs to be run as root.
Cmnd_Alias NETMGR = /usr/bin/netcfg
root ALL=(ALL) ALL
marko ALL=(ALL) ALL
marko ALL=(ALL) NOPASSWD: /usr/bin/netcfg
%network ALL=(ALL) NOPASSWD: /usr/bin/netcfg
%network ALL=NOPASSWD: NETMGR
%users localhost=/sbin/poweroffOh yeah. I can't run "# poweroff" either. Need to be root also.
I know I could use wicd, networkmanager,... But I want to do it this way.
What should I do?
Offline
Why don't you just autostart netcfg in /etc/rc.local? Does it have to start with your graphical login? I normally prefer my network to be started up in the boot process...
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Couldn't you just use net-auto-wireless?
http://wiki.archlinux.org/index.php/Net … omatically
If you want to run as root but no password, you set-up sudoers as above, but still need to specify sudo.
sudo netcfg <profile>"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
If you want to run as root but no password, you set-up sudoers as above, but still need to specify sudo.
sudo netcfg <profile>
It works now! Woohoo!
Thanks skanky ![]()
Offline
Nice one. ![]()
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline