tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Shevland" <>
Subject RE: Running Tomcat as user nobody
Date Wed, 02 Aug 2000 05:18:04 GMT
Here's a cut down example of one I use for Postgres in /usr/local/etc/rc.d/ (FBSD 3.5/4)
that shows this using the 'su' command. You'll need to replace the -x test, -l <user>
and the command within the -c '<command>' section:


[ -x /usr/local/pgsql/bin/postmaster ] && {
su -l postgresuser -c 'exec /usr/local/pgsql/bin/postmaster -S -o -F -D /www/pgsql/data >


>-----Original Message-----
>From: Michael A. Alderete []
>Sent: Wednesday, 2 August 2000 2:51 PM
>Subject: Running Tomcat as user nobody
>How can I get Tomcat to run as user "nobody" on my FreeBSD system? I
>imagine it's a line or two in one of the startup shell scripts for Tomcat,
>but I can't get that to work; I keep getting "this account is not
>available" error messages, presumably because nobody is using /sbin/nologin
>for a shell.
>Here's my configuration:
>FreeBSD 3.2
>Apache 1.3.12
>Tomcat 3.1
>JDK 1.1.8 from the FreeBSD ports collection
>Even if no one here is running FreeBSD, I'd imagine the procedure is
>similar for Linux, if you can tell me how you did it there.
>What have YOU done for Keyser Söze lately?
>Michael A. Alderete
><>          voice: (415) 861-5758

View raw message