Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- "su -" in CGI script ?
- Robert Nilsson
September 30, 2004, 7:54 pm
rate this thread
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?
Re: "su -" in CGI script ?
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" >>,