: Starting Tomcat as nobody...
Tim,
% sudo -u nobody /path/to/startup.sh
This seems to work. Pros, Cons?
I don't have a ton of experience with sudo, but it seems like a good
idea -- you can lock down the operations that a user is capable of
doing, etc.
I have production machines that startup tomcat
: % sudo -u nobody /path/to/startup.sh
I use a tool called erni to kick off daemons and such.
Then again, I'm a little biased. ;)
In addition to the change to user X, execute command Y
provided by su and sudo, erni lets you:
- chroot the command
- assign group memberships on-the-fly
- set the
Tim,
% sudo -u nobody /path/to/startup.sh
This seems to work. Pros, Cons?
I don't have a ton of experience with sudo, but it seems like a good
idea -- you can lock down the operations that a user is capable of
doing, etc.
I have production machines that startup tomcat on boot, and I have
On Nov 21, 2003, at 9:42 PM, Timothy Stone wrote:
Now, how do I start Tomcat as said user? It seems defeatist, at best,
to have to login as root to start Tomcat. If I set permissions say 750
(rwxr-x---, this permission is shown in the aforemention Mac OS X
directory listing) when I login as a
That's pretty much what I do. The cons are that you can't run Tomcat
Standalone on port 80 (not an issue for me, since I run behind Apache with
mod_jk :). If it's working-for-you, I say go for it.
Timothy Stone [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Nov 21, 2003, at 9:42
A Yang wrote:
I have Apache running under nobody, but I'm having
trouble getting Tomcat to. I try to startup Tomcat
using "su - nobody" but run into permissions problems
because my /usr/local/tomcat directory is owned by
root.
Of course! Tomcat writes all sorts of files, log files,