Re: Re: ssh within PHP
| From: | Eugene Lee | Date: | Tue, 11 Nov 2003 07:56:28 +0000 |
| Subject: | Re: Re: ssh within PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169148@lists.php.net to get a copy of this message | ||
On Mon, Nov 10, 2003 at 11:05:02PM -0800, tirumal b wrote:
:
: Its enough if i have the apache privileges. Can i
: login to apache user and to remote computer apache
: user with public key authentication and run some
: command there.
Usually, the user that Apache runs under does not have a real shell.
And ssh by default (and for good security reasons) is configured to
disallow logins for users that do not have a real shell.
If you need a web-based method to run a program as a specific user,
consider suexec:
http://httpd.apache.org/docs/suexec.html