RE: cgi and ssh

2008-09-24 Thread Dermot Paikkos
 >
> > I have a cgi script that needs scp a file from one server to 
another.
> > Because the script runs under the httpd user
> With suEXEC you can run that script (and only that script) under an
> account you create with otherwise very limited privileges.
> 
> http://httpd.apache.org/docs/1.3/suexec.html

Do you think this would work in a Catalyst envirnoment?
Dp.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: cgi and ssh

2008-09-23 Thread David Dorward
Dermot Paikkos wrote:
> Hi,
>
> I have a cgi script that needs scp a file from one server to another. 
> Because the script runs under the httpd user
With suEXEC you can run that script (and only that script) under an
account you create with otherwise very limited privileges.

http://httpd.apache.org/docs/1.3/suexec.html

-- 
David Dorward
http://dorward.me.uk/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




cgi and ssh

2008-09-23 Thread Dermot Paikkos
Hi,

I have a cgi script that needs scp a file from one server to another. 
Because the script runs under the httpd user, for this to work without 
prompting for password, I need to do a lot of configuring that I am not 
sure would be consider good practise. For example: the httpd user's 
account this currently set as 'noloign' that would need to change to 
bash or similar. I have to generate ssh key without a password. 

In the past I have used nfs for copying files from one server to another 
but this isn't an option. Can anyone advise me about this? Will enabling 
the httpd user be a security issue? Is there a safer alternative?

TIA,
Dp.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/