cgi
Czarina Caro L. Tablante 1995-24644
ctablant at eee.upd.edu.ph
Wed Jul 26 16:33:42 EDT 2000
i have a cgi script that does this: $checkerr=`sudo shutdown -r now`;
when i run the script from console, it does what it's supposed to do --
shutdown. when i run the script from the browser (the cgi is run by my
box's webserver - apache), it refuses to shut down. my httpd error_log says:
[Wed Jul 26 01:29:53 2000] [notice] caught SIGTERM, shutting down
[Wed Jul 26 01:36:24 2000] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux)
PHP/3.0.15 mod_perl/1.21 configured -- resuming normal operations
my box runs on linux redhat 6.2, and the sudo package i installed last
night was v1.6.3p4
can't this be done from the browser? i need to let someone login (via an
html form) to reboot the computer.
thanks!
C
More information about the sudo-users
mailing list