RE: [PHP] Shut down server

From: Date: Mon, 17 Jun 2002 16:14:34 +0000
Subject: RE: [PHP] Shut down server
Groups: php.general 
Request: Send a blank email to php-general+get-102535@lists.php.net to get a copy of this message
Why not just create a sticky-bit script running as a separate user who has SUDO access to the shutdown command? ps... your answer was probably meant for the original person asking this question, but your answer to them differs from mine, so now I'm curious as to everyone's opinion of the best approach. -----Original Message----- From: Mohamed Abbas [mailto:m.abbas@internetfayoum.net] Sent: Friday, June 15, 2001 6:25 PM To: Ed Lazor Subject: Re: [PHP] Shut down server hi :)) simply you can't shutdown your server becouse you are not root the php script runing under nobody to do what you want first change the SUID to a box user you can do this by compile apache with suexec the second is to wrapping this user (i mean the user which the script is running under) to root by any suwrapper and use popen( ) to open a pipe to this wrapper and execute any thing shutdown, reboot or eject the cdrom :)) ----- Original Message ----- From: "Ed Lazor" <ELazor@providence.org> Newsgroups: php.general To: "'Rosen'" <rosen@pernikinfo.com>; <php-general@lists.php.net> Sent: Friday, June 14, 2002 2:05 AM Subject: RE: [PHP] Shut down server > That all depends on what kind of server you're referring to. > > > -----Original Message----- > > Hi, > > I tried to shut down my server with exex("/sbin/poweroff") but nothing > > happened! > > Can someone tell me how I could make shut down the server ? > > Is it possible ? > > > > Thanks, > > Rosen > > **************************************************************************** > 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. **************************************************************************** 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.

« previous php.general (#102535) next »