how to run tomcat on linux as root

trying to run tomcat on linux as root? although running tomcat as root is not recommended in environments where it is accessible to the public i feel your pain. sometimes you just wanna run this bad boy as root.

here’s how you do it:

edit the startup file:

/etc/init.d/tomcat6

and change the line:

TOMCAT6_USER=tomcat6

to

TOMCAT6_USER=root
Previous
Previous

remove blekko from chrome

Next
Next

mac: access the user display of an X11 program on a remote machine