I would look at something like authbind, which can be found as a Debian package here:
http://packages.debian.org/unstable/utils/authbind.html Also on Linux is the daemon() function used in some startup scripts, found in /etc/init.d/functions, but I don't know how well either of those would port to HP-UX. I saw a discussion on tomcat-dev that talked about using Tomcat with chroot, but it looked pretty involved. John > -----Original Message----- > From: Pascal Forget [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 20, 2003 2:07 PM > To: Tomcat Users List > Subject: setuid from Tomcat > > > Hi, > > I would like to fire up Tomcat as the root user on port 80 > and then switch > to user nobody, just like Apache does it. > > Is there a way to do this with the "stock" Tomcat? > > If not, has anyone attempted to use JNI to call the native C function > setuid()? > > I'm trying to do this on HP/UX 11.0 > > Thanks, > > Pascal Forget > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>