This has serious security implications.  Research how to create a script on
your system.  Set it's sticky bit to run as a standard user that has
authorization to run the shutdown command using SUDO.  Make sure the script
works from within UNIX and then call the script from PHP using exec.

I am not a security expert.  Check with others to get their opinion on
whether this is the best approach.

> -----Original Message-----
> The server is Linux Red Hat 7.2
> > > Can someone tell me how I could make shut down the server ?
> > > Is it possible ?
 
****************************************************************************
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.                                                                       

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to