If I log in as root and start TomCat, then TomCat's user will be root. Ditto
if I log in as "fred" or "bert". If, for example, root owns all TC files
(i.e. everything under TomCatHome) then you will run into problems trying to
run TC as anybody other than root. Change the ownership of TomCat to the
user that it will run as. On my system, TC runs as nocat on boot. The same
user owns all TC files. No world write permissions are needed.

ps -ef | grep java will tell you who TC is running as:

nocat   251     1  0   Feb 14 ?        0:11
/usr/java/bin/../jre/bin/../bin/sparc/native_threads/java -Xms64M -Xmx256M
-cla

 
John
 

-----Original Message-----
From: Scott Shorter [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2002 14:55
To: TomcatUserList
Subject: Tomcat + Solaris = ??


Hi all,

I've searched the archives and found questions on this topic, but few
answers.

I've developed a web app using Tomcat 4.0.1 on my Win2K box (with no
other web server), and the time has come to port it to Solaris.  There
seem to be issues of processes and permissions regarding this.

I am having basically the same problem as
http://www.apachelabs.org/tomcat-user/200009.mbox/%3C39D1F701.BF277F08@s
pinweb.net%3E and I was able to get around that one by setting the
permissions a+w for all relevant subdirectories of
tomcat/work/localhost/.  There must be a better way, though.

How can I determine what user tomcat runs as?  Does the same user
compile jsps?  How can this be configured?

Thanks in advance for any assistance.

Regards,
Scott


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to