Hi,
I am trying to execute "reboot" command inside a cgi script but nothing happens. I am using 2.6.18-1.2798.fc6. My script /var/www/cgi-bin/reboot.cgi contains:
---------------
reboot
---------------
Executing the script from a remote client:
http://192.168.15.43/cgi-bin/reboot.cgi
/var/log/httpd/error_log gives me the error:
[Tue Oct 30 18:36:58 2007] [error] [client 192.168.15.91] reboot: must be superuser.
[Tue Oct 30 18:36:58 2007] [error] [client 192.168.15.91] Premature end of script headers: reboot.cgi
How do I fix this?
Thanks