RE: [PHP-DEV] PHP 4.0 Bug #7607: system()ed commands do not exit ifthe user interrupts transfer

From: Date: Sat, 04 Nov 2000 01:32:31 +0000
Subject: RE: [PHP-DEV] PHP 4.0 Bug #7607: system()ed commands do not exit ifthe user interrupts transfer
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37079@lists.php.net to get a copy of this message
> > Unfortunately, the latter can't be done from within PHP, unless PHP is > > running with root priveliges. In order to send ICMP packets, one must open > > a raw socket, which is usually a priveliged operation.. > > > > Chris > > The web server does not run as root, and it does have the ability to run > ping, just like any user with access to that machine can run ping without > being root. > That response was to someone suggesting using sockets within PHP and doing the ping that way (i.e. no /bin/ping program to do it) -- but you can't do that. ping(8) runs as root, it's a setuid/setgid binary on my system, and I suspect on most other systems as well. Chris

« previous php.dev (#37079) next »