Tomcat runs as root?

Hi all!

I’m checking my tomcat folder and I see that everything that is written by tomcat is owned by root:root. Does this means it’s running as root? Shouldn’t it be owned by tomcat:tomcat?

How can I change the user that runs tomcat?

Best regards,
Jorge

  • jorgeraimundo wrote, On 10/07/2009 04:26 PM:
    > Hi all!
    >
    > I’m checking my tomcat folder and I see that everything that is written
    > by tomcat is owned by root:root. Does this means it’s running as root?

ps aux | grep tomcat
The first information should be the user.

> How can I change the user that runs tomcat?

In the tomcat configuration file (usually in /etc/init.d), there should be a TOMCAT_USER line.

HTH
Uwe

Hello buckesfeld!

Thank you for your reply!

In deed “ps aux | grep tomcat” shows that it’s the tomcat user that is running tomcat.

And in deed the files are owned by the tomcat user. My bad. Sorry.

  • jorgeraimundo wrote, On 10/07/2009 05:16 PM:
    > Hello buckesfeld!
    >
    > Thank you for your reply!
    >
    > In deed “ps aux | grep tomcat” shows that it’s the tomcat user that is
    > running tomcat.
    >
    > And in deed the files are owned by the tomcat user. My bad. Sorry.
    >
    >

No problem :slight_smile:

Uwe