[wplug] Quick script/SU(or SUDO) question

Ben Beige dariuscardren at gmail.com
Thu Jul 13 12:58:26 EDT 2006


I'm working on a small C program to allow a  suere to start 1 program
from another users home directory w/o access to that directory,
niether of the users should need root access oor to know the others
password to make this sucessful. I've got the basic structure down,
but it asks for a password  if ran this way, waht would I need to
compile the password into this too? Sinnce it's just not all that
useful if the other party needs to have my passowrd to run it.

Code so far:

     #include <stdlib.h>

     int main(void)
     {
          system("su user -c /home/user/apppath/startup &");
          return null;
     }

-- 
Ben Beige
dariuscardren at gmail.com


More information about the wplug mailing list