• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

tomcat and java on Linux

 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These are probably really simple questions, but i am new to linux. I downloaded the jdk1.4.1_02 and tomcat and installed them on the Linux box as root.
When Tomcat runs, does it need to run as the root user, and if so how can i get it to start up automatically if someone restarts the server? When the server restarts, does it always restart as the root user? If so, do my environment variables such as JAVA_HOME, have to be set from the root user point of view (ie when logged in as root) so Tomcat can see them?
Sorry for the confusion, hopefully someone can set me straight.
Thanks
Brian
 
Saloon Keeper
Posts: 28320
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, Tomcat can run as a non-root user and it runs as user "tomcat" on my servers.
There had been a distro of Tomcat in RPM form which installed an /etc/init.d tomcat3 (or 4) script and created this user account. Unfortunately, I don't think it's been updated lately.
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic