On Sunday 09 March 2003 09:30 am, Jason Lanpher wrote:
> Hi everyone,
>
>     What is the best/easiest way to set up services such as tomcat to
> run as a different user than root?
>
> Thanks in advance,

Under redhat, if you are starting tomcat via an rc script you can look in 
/etc/rc.d/init.d/tomcat. Look for the line that has daemon and add --user 
tomcat.

# Start daemons.
        echo -n $"Starting tomcat: "
	daemon <path>/tomcat --user tomcat


-- 
Bob Tanner <tanner at real-time.com>         | Phone : (952)943-8700
http://www.mn-linux.org, Minnesota, Linux | Fax   : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288

_______________________________________________
Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list