-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josh,

On 11/17/12 11:37 PM, Josh Gooding wrote:
> Moved this to the user list instead of the dev group.  Hmmm
> strangely enough, I tried this on a CentOS system, I believe it
> forced me to be root over the tomcat user.

It all depends upon the file permissions of catalina.out and the
directory in which it resides. Deleting catalina.out certainly does
not require root access in all cases, but I'm sure there are cases
where root is required (e.g. because you are running Tomcat as root).

> I can re-check that shortly.  I know it recreates the file
> <catalina.out> next time without any discourse, if I run the
> startup script as the tomcat user.
> 
> :: update :: I figured out WHY it forced me to be root.  Someone
> *(may or may not have been me) ran the /etc/init.d/tomcat start
> script as the root user, not as the tomcat user which I believe
> would cause this behavior.

You should write your /etc/init.d scripts in such a way that they run
under the proper user no matter who invokes them. For instance, if you
want to run Tomcat as 'tomcat' then your init.d script should probably
do "sudo -u tomcat $CATALINA_BASE/bin/catalina.sh start" or something
to that effect.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlCqmfEACgkQ9CaO5/Lv0PD8BgCgrexYyS13j84h9SJx4S2/eZl1
ZYUAn0N5SEsmWRJSuO8ezspEbYDl5+f0
=7zTN
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to