On Fri, September 21, 2007 10:50 am, Brad Beyenhof wrote: > John H. Robinson, IV wrote: >> Lan Barnes wrote: >>> Thing is, scripts can't run as root, so you have to start it as a user. >> >> Two ways around that: >> 1) write a SUID wrapper in C that can call the program. >> 2) sudo > > Can't you just set the SUID bit in the script file, and chown to root? >
Nope. It's expressedly forbidden in Linux and most POSIXs. Security. -- Lan Barnes SCM Analyst Linux Guy Tcl/Tk Enthusiast Biodiesel Brewer -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie
