Results 1 to 4 of 4

Thread: Tomcat runs as root?

  1. #1
    Join Date
    Sep 2009
    Location
    Alverca do Ribatejo, Portugal
    Posts
    53

    Exclamation 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

  2. #2
    Join Date
    Mar 2008
    Location
    Bochum, Germany
    Posts
    3,587

    Default Re: Tomcat runs as root?

    * 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

  3. #3
    Join Date
    Sep 2009
    Location
    Alverca do Ribatejo, Portugal
    Posts
    53

    Default Re: Tomcat runs as root?

    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.

  4. #4
    Join Date
    Mar 2008
    Location
    Bochum, Germany
    Posts
    3,587

    Default Re: Tomcat runs as root?

    * 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 :-)

    Uwe

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •