"su -" in CGI script ?

From: Robert Nilsson (robert.nilsson_at_monet.no)
Date: 09/30/04


Date: Thu, 30 Sep 2004 14:54:32 +0200

Hello

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?

Robert



Relevant Pages

  • Re: "su -" in CGI script ?
    ... > I'm trying to execute a specific command from a CGI script written in PERL. ...
    (comp.lang.perl.misc)
  • Re: "su -" in CGI script ?
    ... >> I'm trying to execute a specific command from a CGI script written in ... >> The CGI script is running as the user apache on the server, ... the command "system" in PERL ...
    (comp.lang.perl.misc)
  • Re: REG: dbi::errstr error.
    ... > I have a cgi script adduser.cgi which collects the data from the user ... when i execute this script i encountered the error ... The message is precise - and Perl is case-sensitive. ... > perl and mysql i cant able to find out the reason for the error. ...
    (perl.dbi.users)
  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
    (comp.lang.perl.misc)
  • Re: New Application Extension reports 404
    ... You actually want .RUN to be handled by Perl, ... please add a Web Service Extension ... /command1.run will execute Perl script1.pl ... but IIS4 had the "RUN" extension mapped to execute a predefined perl script. ...
    (microsoft.public.inetserver.iis)