Instead of going the sudo rout, I ended up creating a file chmod 4751:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>


int main()
{
setuid( 0 );   // you can set it at run time also
clearenv();
system("/usr/sbin/pm-suspend");
return 0;

}


Wayne Sallee
[email protected]
http://www.WayneSallee.com
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to