vbrtrmn has asked for the wisdom of the Perl Monks concerning the following question:

That's probably not the best title, but anyway...

I'm running Apache 1.3.x on a basic Mandrake 9.x install.

My question is how do I run scripts as alternate users. I have about a dozen VirtualHosts setup, each is setup as a specific user and group. All of my scripts run as apache.apache, I would prefer them to run as say siteXXadmin.siteXXgroup (or whatever).

--
paul

Replies are listed 'Best First'.
Re: Apache Perl Alternate User
by Abstraction (Friar) on Jul 03, 2003 at 02:35 UTC
    Take a look at the Apache User and the Group Directive. I believe this will do what you are looking for.

      This isn't actually a perl question, but I'll bite. There are a few ways of doing this, modern Apache comes with suEXEC. There are also third-party modules to accomplish similar things with wider scope (eg; for static content as well, beware that for the latter you have to compile Apache with -DBIG_SECURITY_HOLE and run it as root).

      --
      I'm not belgian but I play one on TV.