> In the tomcat-apache-how-to there is a section at the end
> where the writer
> answers a question of How do you start tomcat as "nobody"
>
> Here's the code:
>
> #!/bin/sh
> CLASSPATH=/your/classpath/here
> export CLASSPATH
> su - nobody -c "/tomcat/bin/tomcat.sh $@"
>
> The only thing I changed was the path /your/classpath/here
> My CLASSPATH contains JAVA_HOME so I figure I have to put
> that env var and
> associated export
>
> On boot TomCat is not being started.
>
> I've got some debug/echo in tomcat.sh that writes out to a
> file. The debug
> msgs never show up, so I figure it tomcat.sh is never being called.
>
> Now I'm not super clear about why I would need or want to run
> TomCat as
> nobody. If I yank out the "su - nobody" it seems to work fine.
You would want TomCat to run as nobody so that it is not possible to break
TomCat (which is usually run as 'root') in some way and thereby gain root
access to your machine.
> ands what's the "nobody" got to do with boot up anyway.
See above. It's ok to run as root - it's just not very secure.
> Also, any clue on why I don't see any msgs or why TomCat is not being
> started.
Does 'nobody' have the rights to execute startup.sh? Does 'nobody' have
access to the TomCat dir?
If not, correct it and try again.
/christopher
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]