tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil B. Cohen" <nco...@verisign.com>
Subject Re: Security question - starting tomcat as non-root user
Date Wed, 11 Apr 2007 15:06:23 GMT
I didn't realize it could be that simple :) Thanks very much - I will
give that a try...


Much obliged,

nbc


On Wed, 2007-04-11 at 07:59 -0700, Hassan Schroeder wrote:
> On 4/11/07, Neil B. Cohen <ncohen@verisign.com> wrote:
> 
> > Situation - I am installing tomcat and running it on port 8080. However,
> > it is currently being started by the root user and I need to change
> > that.
> >
> > If I just run the startup script as user 'foo', I get errors because it
> > can't read various config files in the conf directory, can't write to
> > the logs directory etc.
> 
> Because having once run as root, all directories and files /created by/
> Tomcat are owned by root. If you reinstalled and initially started it as
> user 'foo', everything would be owned by foo.
> 
> So either reinstall, or change ownership of everything to 'foo'.
> 
> HTH,


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message