Re: "su -" in CGI script ?
Date: Fri, 1 Oct 2004 08:49:56 +0200
<firstname.lastname@example.org> skrev i melding
> Robert Nilsson <email@example.com> wrote:
> > I'm trying to execute a specific command from a CGI script written in
> > I have to be a special user so I've tried to use "su -" but it doesn't
> > The CGI script is running as the user apache on the server, right? Is
> > the problem? Is there any other way to execute something with "system"
> > someone else within perl?
> This is an OS question (UNIX) not a perl one. "su" requires a password. If
> you're running a CGI script there's no terminal from which it can get
> the password. Read "man su" for details.
> I don't understand what you mean by << executing something with "system"
.... the command "system" in PERL
- "su -" in CGI script ?
... I'm trying to execute a specific command from a CGI script written in PERL. ... I have to be a special user so I've tried to use "su -" but it doesn't work. ...
- dynamic lib ignored even after "found" in "install_driver(Oracle) failed: Cant load..." cgi problem
... here's a problem it seems a lot of people are seeing when running a CGI script ... after installing the the sqlplus client on my linux machine (and testing it on the command line, successfully connecting to our oracle db), and then installing the perl moduleneeded to make connections in perl scripts and cgis, i find, like so many others i've seen complain about this, that my cgi script runs fine from the command line, but fails when it is run as a CGI via my machine's apache webserver. ...
- Re: Perl CGI executing command line functions
... complicated application area such as CGI programs. ... > do not want to give them command line access. ... > write a Perl CGI script that executes some of the commands for them, ...
- Perl CGI executing command line functions
... I am just starting out with Perl and am trying to figure out how to ... setup a CGI script to perform some command line functions. ... Perl CGI to write to files, display HTML pages and print lines. ...
- Re: "su -" in CGI script ?
... > I'm trying to execute a specific command from a CGI script written in PERL. ...