Which user is running tomcat?

Gaurav Agarwal

I have a Tomcat 7 server running on Amazon EC2 (OS - Ubuntu 12 LTS). How can I find out which user is running Tomcat on Amazon EC2?

Vidyadhar

Run following command to find out the tomcat process

ps auxwww | grep -v grep | grep tomcat 

From there you will find out the tomcat process and from there you can see which user is starting this.

For eg see the following output

vidyadhar@ubuntu:~$ ps auxwww | grep -v grep | grep tomcat
root      1941  0.2  1.7 419224 35208 ?        Sl   Aug12   0:06 /usr/lib/jvm/java-6-sun/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/tomcat/endorsed -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start

In above eg 1941 is a tomcat process which is started by root user.

If you want to see all the user run below command

more /etc/passwd

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Which user is running tomcat?

From Dev

Which user is running the most processes?

From Dev

Running docker as non-root user OR running jenkins on tomcat as root user

From Dev

How can I tell which user limit I am running into?

From Dev

How can I see which user accounts are running which processes in Windows 8.1?

From Dev

403 error page is not working in my web service which is running on a Tomcat 7

From Dev

I wanna run a servlet application on my tomcat8.5 which is running on my centos server

From Dev

Tomcat server is running but Application is not running

From Dev

System.getProperty("user.home") returns /root when running on Tomcat

From Dev

Running scheduled task in Tomcat

From Dev

Determine if Tomcat is Running with Ruby

From Dev

Tomcat not running on docker image

From Dev

Webapp running in Jetty but not in Tomcat

From Dev

Errai 4 running on Tomcat

From Dev

Running Apache with Tomcat

From Dev

Tomcat not running on docker image

From Dev

Running scheduled task in Tomcat

From Dev

Is tomcat running, python script

From Dev

Jersey Servlet running on Tomcat?

From Dev

Can I find under which user is a service running via systemctl command?

From Dev

PHP running as apache user, isn't a member of any LDAP groups of which apache is a member

From Dev

I am running a Tomcat server, I would like to pull the details of the machine from which the requests originate. Is this possible and how?

From Dev

Kestrel Running which framework?

From Dev

Which tftp server is running

From Dev

In which directory is node running?

From Dev

Inetd and Xinetd: which is running?

From Dev

Which Python is running?

From Dev

Google Analytics For website running on tomcat

From Dev

Trouble running Grails application on Tomcat

Related Related

  1. 1

    Which user is running tomcat?

  2. 2

    Which user is running the most processes?

  3. 3

    Running docker as non-root user OR running jenkins on tomcat as root user

  4. 4

    How can I tell which user limit I am running into?

  5. 5

    How can I see which user accounts are running which processes in Windows 8.1?

  6. 6

    403 error page is not working in my web service which is running on a Tomcat 7

  7. 7

    I wanna run a servlet application on my tomcat8.5 which is running on my centos server

  8. 8

    Tomcat server is running but Application is not running

  9. 9

    System.getProperty("user.home") returns /root when running on Tomcat

  10. 10

    Running scheduled task in Tomcat

  11. 11

    Determine if Tomcat is Running with Ruby

  12. 12

    Tomcat not running on docker image

  13. 13

    Webapp running in Jetty but not in Tomcat

  14. 14

    Errai 4 running on Tomcat

  15. 15

    Running Apache with Tomcat

  16. 16

    Tomcat not running on docker image

  17. 17

    Running scheduled task in Tomcat

  18. 18

    Is tomcat running, python script

  19. 19

    Jersey Servlet running on Tomcat?

  20. 20

    Can I find under which user is a service running via systemctl command?

  21. 21

    PHP running as apache user, isn't a member of any LDAP groups of which apache is a member

  22. 22

    I am running a Tomcat server, I would like to pull the details of the machine from which the requests originate. Is this possible and how?

  23. 23

    Kestrel Running which framework?

  24. 24

    Which tftp server is running

  25. 25

    In which directory is node running?

  26. 26

    Inetd and Xinetd: which is running?

  27. 27

    Which Python is running?

  28. 28

    Google Analytics For website running on tomcat

  29. 29

    Trouble running Grails application on Tomcat

HotTag

Archive