IDependOn-Set: 1
IDependOn-Set: 2
IDependOn-Set: 279
IDependOn-Set: 282
IDependOn-Set: 286
IDependOn-Set: 7
LastModifiedSecs: 936897468
Parent: 7
SequenceNumber: 2
Title: Setting the USER id for java interepreter forked from Apache web-server
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 936897468
Type: monospaced
Lines: 45
----------
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
EndPart: 0
