Or install the cgi version and use it in conjunction with suExec alongside
the module version.

jason


----- Original Message -----
From: "Jon Snell" <[EMAIL PROTECTED]>
To: "php general" <[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 9:44 AM
Subject: RE: [PHP] exec as another user


> It would be a much better idea to set the +s flag on the executable you
are
> trying to run, and make sure it's owned by the other user.
>
> -----Original Message-----
> From: Henrik Hansen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 07, 2001 1:10 PM
> To: php general
> Subject: Re: [PHP] exec as another user
>
>
> > Hi,
> >
> > This may be a stupid question but how can I execute programs as another
> > user under php?
> > I'm using Linux with Apache 1.3.12 and PHP 4.
>
> The only way i can figure out would be by using the sudo command without a
> password
> (don't do that with root), do a 'man sudo' on your linux box
>
> --
> Henrik Hansen
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to