Re: "su -" in CGI script ?

From: Robert Nilsson (robert.nilsson_at_monet.no)
Date: 10/01/04


Date: Fri, 1 Oct 2004 08:49:56 +0200


<chris-usenet@roaima.co.uk> skrev i melding
news:sret22-fmj.ln1@moldev.cmagroup.co.uk...
> Robert Nilsson <robert.nilsson@monet.no> wrote:
> > 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.
> > The CGI script is running as the user apache on the server, right? Is
that
> > the problem? Is there any other way to execute something with "system"
as
> > 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"
>>,
> though.
>
> Chris

.... the command "system" in PERL



Relevant Pages

  • "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. ...
    (comp.lang.perl.misc)
  • 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. ...
    (perl.dbi.users)
  • 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, ...
    (comp.lang.perl.misc)
  • 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. ...
    (comp.lang.perl.misc)
  • Re: "su -" in CGI script ?
    ... > I'm trying to execute a specific command from a CGI script written in PERL. ...
    (comp.lang.perl.misc)