You are not logged in.

#1 2009-03-06 11:29:48

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

[SOLVED] running a program as root without password

im trying to have netcfgGUI to be able to run with SU privileges without a password. yet im having problems with the sudoers file. its being ignored.


the line im using to have this setup is the following:

%users ALL=(ALL) NOPASSWD: /usr/bin/netcfgGUI

yet when i execute netcfgGUI with

$ sudo netcfgGUI

it still asks for my password. as if the line was being ignored... i tried loging out/in again...


anyone got a clue what im missing?

Last edited by eldragon (2009-03-06 15:54:58)

Offline

#2 2009-03-06 12:58:49

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED] running a program as root without password

Make sure the NOPASSWD line is at the end of your sudoers file. Otherwise it gets ignored.


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#3 2009-03-06 13:43:56

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] running a program as root without password

Have you considered chown root:root name_of_program; chmod +s name_of_program ?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2009-03-06 15:54:28

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED] running a program as root without password

klixon wrote:

Make sure the NOPASSWD line is at the end of your sudoers file. Otherwise it gets ignored.

ahh that was it... thanks..

Offline

Board footer

Powered by FluxBB