Re: accessing system cmds w/ PHP

From: Date: Thu, 28 Feb 2002 21:47:49 +0000
Subject: Re: accessing system cmds w/ PHP
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-17372@lists.php.net to get a copy of this message
NOT a good idea. You would have to run Apache as root (or whatever that SUID stuff is all about). I've been able to manage keeping all the users 'virtual' and not needing to hand out shell accounts. -- William Fong - wfong@mookandblanchard.com Phone: 626.968.6424 x210 | Fax: 626.968.6877 Wireless #: 805.490.7732 | Wireless E-mail: 8054907732@mobile.att.net ----- Original Message ----- From: "Jeremiah Jester" <jjest@u.washington.edu> To: "William Fong" <sql@mookandblanchard.com> Sent: Thursday, February 28, 2002 11:45 AM Subject: RE: [PHP-DB] accessing system cmds w/ PHP : Is there a way around this? I want to be able to create system users from my : web site. : JJ : : -----Original Message----- : From: William Fong [mailto:sql@mookandblanchard.com] : Sent: Thursday, February 28, 2002 11:30 AM : To: php-db@lists.php.net : Subject: Re: [PHP-DB] accessing system cmds w/ PHP : : : Just remember you will be running those commands as the web server, which : usually have limited access rights. : : : -- : William Fong - wfong@mookandblanchard.com : Phone: 626.968.6424 x210 | Fax: 626.968.6877 : Wireless #: 805.490.7732 | Wireless E-mail: 8054907732@mobile.att.net : : : : : ----- Original Message ----- : From: "Kevin Traas" <kevin@merilus.com> : To: "Beau Lebens" <B.Lebens@curtin.edu.au>; "'Jeremiah Jester'" : <jjest@u.washington.edu>; <php-db@lists.php.net> : Sent: Thursday, February 28, 2002 10:38 AM : Subject: Re: [PHP-DB] accessing system cmds w/ PHP : : : : Beau, you're such a l33t h4x0r.... ;-) : : : : ----- Original Message ----- : : From: "Beau Lebens" <B.Lebens@curtin.edu.au> : : To: "'Jeremiah Jester'" <jjest@u.washington.edu>; <php-db@lists.php.net> : : Sent: Wednesday, February 27, 2002 5:33 PM : : Subject: RE: [PHP-DB] accessing system cmds w/ PHP : : : : : : > JJ, : : > I seem to recall most people saying that the shorthand works best : : > : : > $output = `chmod -R 777 *'; : : > : : > HTH : : > : : > beau : : > : : > // -----Original Message----- : : > // From: Jeremiah Jester [mailto:jjest@u.washington.edu] : : > // Sent: Thursday, 28 February 2002 9:37 AM : : > // To: php-db@lists.php.net : : > // Subject: [PHP-DB] accessing system cmds w/ PHP : : > // : : > // : : > // Can anyone tell me how to access linux system commands using : : > // php. Tried the : : > // system() cmd but no luck. Does it require a wrapper to work?Thanks, : : > // JJ : : > // : : > // : : > // -- : : > // PHP Database Mailing List (http://www.php.net/) : : > // To unsubscribe, visit: http://www.php.net/unsub.php : : > // : : > : : > -- : : > PHP Database Mailing List (http://www.php.net/) : : > To unsubscribe, visit: http://www.php.net/unsub.php : : > : : : : : : -- : : PHP Database Mailing List (http://www.php.net/) : : To unsubscribe, visit: http://www.php.net/unsub.php : : : : : : -- : PHP Database Mailing List (http://www.php.net/) : To unsubscribe, visit: http://www.php.net/unsub.php : : :

« previous php.db (#17372) next »