Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Configuration :
Setting the USER id for java interepreter forked from Apache web-server
----------
From: "Craig R. McClanahan" cmcclanahan@mytownnet.com
To: Java Apache Users java-apache-users@list.working-dogs.com
Subject: Re: USER id for java interepreter forked from Apache web-server
Date: Wed, Sep 8, 1999, 6:23 PM

Charles Read wrote:

>
> My configuration:
>
> Linux (RedHat 6.0)
> Apache 1.3.6
> JSDK 2.0
> ApacheJServ 1.0
>
> I noticed that the java interepreter forked from Apache
> runs under USER `nobody'.  Can this be customized somehow?
>
> [I need my servlet to have certain access permissions
> to read/write certain files.]
>

It runs under user "nobody" because that is what you have configured
Apache itself to run under, in the httpd.conf file.  One option is to
change this setting, which will affect both Apache and Apache JServ.

Alternatively, you can run Apache JServ under a different username by
starting it manually instead of automatically.  There's details in the
INSTALL documents and the FAQ, but basically you will set up a shell
script that starts Apache JServ separately -- so it can be run under any
username you like.  You can extend this approach to run more than one
Apache JServ process, each with their own set of zones, under different
usernames -- even on different servers, if that is appropriate.

Don't forget to change the ApJServManual setting in your
jserv.properties file to "on" if you want to do this.

>
> --
> Charlie Read
> MatraNet, Inc.
>

Craig McClanahan
[Append to This Answer]
Previous: (Answer) Malformed AJP request: error reading line data [id = ] [token1 = null] [token2 = null]
Next: (Answer) Why won't the JVM start?...A helpful debugging tip...
This document is: http://java.apache.org/faq/?file=282
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.