Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Apache Perl Alternate User

by vbrtrmn (Pilgrim)
on Jul 03, 2003 at 02:07 UTC ( [id://271045]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://271045]
Approved by gellyfish
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found