Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2026-01-21 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (125 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.