tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Métras <>
Subject Re: Tomcat setup permissions under linux
Date Wed, 25 Oct 2000 16:39:51 GMT
Now my tomcat is running as "myapp" user, with the following permissions:
- I created a new group "tomcat".
- I added "myapp" to that group.
- Changed the group ownership of all the tomcat files to group "tomcat".
- Give group write access to the directories "logs", "work", "webapp" and
"conf" (seems to need to have write access for a Netscape autoconfiguration

I am not sure that this is the most secure configuration for what I want to
do, but at least it's minimalist.

Pierre Métras

----- Original Message -----
From: "Pierre Métras" <>
To: <>
Sent: Wednesday, October 25, 2000 12:10 AM
Subject: Tomcat setup permissions under linux

> Hi all,
> I want to test my application in a deployment context and try it under
> linux.
> I have set up a new PC with linux Debian 2.2, Sun JRE 1.3 and Tomcat
> When I untar the tomcat bin file, in the "/usr/local" directory, I noticed
> that all files where owned by a user "500" and group "500". I checked in
> "/etc/passwd" that there's no user with id 500, so I choose to change the
> property of all tomcat files and directories to "root.staff".
> Now I created a "myapp" user that will own the application files, and I
> don't want to give it access to root rights.
> If I try to start tomcat from the "myapp" login, I obtain screenfull of
> errors because tomcat can't access the "logs" and "work" directories. And
> effectively, these directories are not created as they are on my
> environment.
> Here come the questions:
> [1] What should be tomcat files and directories permissions to allow
> to different users, under "/usr/local"? Must I run tomcat once as root to
> create the missing directories and create initialization files?
> [2] How should I start tomcat to give it the rights of some specific users
> (and not root)? If I have two different users, should I need to start two
> instances of tomcat?
> Perhaps these are more linux questions and I'm not an expert in that field
> but I want to setup my application with the right level of security on
> platform.
> Thanks for your help.
> Pierre Métras

View raw message