-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Paul Holbrook wrote:
> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> I have had a look through the FAQ but couldn't find anything.
> 
> I have a secure file that only root can access. I want to be able to add
> things to that file as a servlet. As I understand, servlets run as
> nobody. Any suggestions?
>

yep,

start JServ as root with manual mode = On.
Servlet run as nobody because Apache default conf says to do so, and you
tell Apache (in jserv.conf, ApJServManual=Off, to start the JVM.

Maybe you can create 2 zones, and use 2 JServs :
zone1 for all you servlets : you'll start it under user xy (or nobody)
zone2 for your ModifyFile servlet. start JServ with enough access rights
(maybe user root).
Jean-Luc


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to