CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
run perl under a different user?



Aug 3, 2000, 7:42 AM

Post #1 of 2 (795 views)
run perl under a different user? Can't Post

I'm trying to configure a apache-web-server (linux) with perl. I created a html-based user-interface and i'm able to create directories and to modify the *.conf files. But I can't get the perl-script to restart the webserver (apachectl graceful). The log file always says "operation not permitted". How can i make the perl script running und super-user or something else....?


Aug 3, 2000, 8:56 AM

Post #2 of 2 (795 views)
Re: run perl under a different user? [In reply to] Can't Post

If you configured Apache with suEXEC, the you can use the User and Group directives to change whom that VirtualHost executes scripts as.

Alternately, you can set your script setuid (ie, chmod 4755 my.cgi). Do a man chmod for more details.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives