9

How to determine what user was used to start Apache Tomcat last (or last few times)

view full story
linux-howto

http://unix.stackexchange.com – On a Mac, or a Linux Tomcat install, how do I determine what user was used last to start Tomcat? Is there information in the logs somewhere to that effect? Assume that startup.sh and shutdown.sh are being used to control Tomcat. My best guess is the user(s) who have write access to Catalina.out are the most plausible suspects, but I wanted a hard and fast rule for determining who it is. Also it isn't currently running so don't say ps -ef|grep -i Tomcat (HowTos)