This is a discussion on Start a process as boot with username != root within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I want to start 'Tomcat' at boot time with a username of tomcat and not root. How can I ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I want to start 'Tomcat' at boot time with a username of tomcat and not root. How can I do this? I was thinking of doing it via ssh ssh tomcat@locahost:/uss/local ..../startup.sh with password less public-key/private-key but there must be a more sensible way. -- Dave K http://www.southminster-branch-line.org.uk/ Please note my email address changes periodically to avoid spam. It is always of the form: month-year@domain. Hitting reply will work for a couple of months only. Later set it manually. The month is always written in 3 letters (e.g. Jan, not January etc) |
| ||||
| On Sun, 04 Dec 2005 13:16:03 +0000, Dave wrote: > I want to start 'Tomcat' at boot time with a username of tomcat and not > root. How can I do this? I was thinking of doing it via ssh > > ssh tomcat@locahost:/uss/local ..../startup.sh > > with password less public-key/private-key > > but there must be a more sensible way. If you download the Tomcat5 package from blastwave.org, its /etc/init.d/cswtomcat5 script will illustrate how to run tomcat as a dedicated user. In short, it involves things like .... case $1 in 'start') /bin/su $TOMCAT_USER -c $CATALINA_HOME/bin/startup.sh ;; .... and # TOMCAT_USER # # TOMCAT_USER variable defines the Solaris user running the # tomcat server. You can supered the default valude in the # tomcat5 configuration file. The value of this variable must # be a valid Solaris user (ie: root, nobody). The default value # is root. # # WARNING : By default the directory permissions are set for # the root user (no write access for 'nobody'). # The logs are stored in /opt/csw/share/tomcat5/logs, and do belong # to root user. If you change the TOMCAT_USER, be sure that this # user can write in the log directory. # # The following permissions may also have to be changed : # . give read access to the conf directory and all its subdirs # . give write access to the conf dir to let tomcat create new files # . give write access to the work dir # |
| Thread Tools | |
| Display Modes | |
|
|