|
From: Leif M. <le...@ta...> - 2005-10-03 15:53:16
|
John,
By the "tomcat" file, are you referring to the Wrapper's
"sh.script.in" file renamed as
"tomcat"? Or the tomcat script that comes with Tomcat?
I assume the Wrapper's file, in which case you should just have to
change:
#RUN_AS_USER=
to
RUN_AS_USER=youruser
This must be done before the Wrapper script is launched of course.
If there are
no errors launching the Wrapper then a "ps -aux" should show the wrapper
and java
processes running as "youruser". Are they showing up running as "root"
on your
system?
To debug the script, you may want to add some echo statements to
make sure
it is all working correctly on your platform. I use this feature quite
a bit on Linux.
Cheers,
Leif
John Larsen wrote:
>Hello Leif,
>
>Even though username is set in the tomcat file in tomcat/bin/ it still starts
>the container as root if ./tomcat start is activated from root user.
>
>I've come into problems where user cant remove the work files etc because its
>owned by root:user. But if I shutdown wrapper from root and then startup after
>su - user then it works fine.
>
>Any ideas around this?
>
>Thanks!
>
>John
>Java|Pipe
>
>
|