[Gambas-user] EXEC with root rights

Jesse Long jesse at ...486...
Thu Jun 24 08:28:44 CEST 2004


On Wed, 2004-06-23 at 20:20, Michael Bergmann wrote:
> Hi there,
> 
> for a little app I'm writing on, it would be neccessary to EXEC[] 
> (...prefered!) or SHELL() a bunch of commands that reside in the /sbin dir 
> (...they are called trough a script, indeed). Prob is that I would need root 
> rights to execute f.e. "modprobe". Any Ideas how this could be done without 
> running the whole app suid root?

see /etc/sudoers

man sudoers

then into applicateion...

exec ( "sudo", "-u", "root", "command", "parameter") for read.....

hth,
Jesse
-- 

"And in the beginning there was Unix, and Unix spoke and said, 
'Hello World\n', and Unix saw that it was good."




More information about the User mailing list