but how would i store keys for apache?

----- Original Message ----- 
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Nitin Mehta" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 27, 2004 4:03 PM
Subject: Re: [PHP] su idn't working from within php


> Why do you need su? Set up sudo for apache user.
>
> Nitin Mehta wrote:
> > hi all
> >
> > i was trying to execute some commands as an authorized user from within
my php script with
> >
> > exec ("su <username> -c \"sudo <command>\" 2>&1;", $output);
> >
> > but it gives me
> >
> > standard in must be a tty
> >
> > how can i make it work? it runs perfectly at command prompt
> >
> > I even tried to ssh, but the problem is where should i copy the rsa-key
generated with keygen, as the scripts are run as apache/http user..........
> >
> > Plz help me out of this
> >
> > Thanx in advance
> > Nitin
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to