tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject Re: tomcat users file
Date Mon, 03 Apr 2006 15:18:53 GMT
During startup, tomcat reads tomcat-users.xml and then immediately
writes it out again as and afterwards renames to tomcat-users.xml (I don't know who invented that

So either:

- the runtime user has write access to the directory tomcat-users.xml is
in (usually conf, but you can choose another one in server.xml), or

- you use at least Tomcat 5.5.12 (better 5.5.15 or 5.5.16) which has a
patch I submitted at 2005-08-04 that

      - logs a nicer message when it cannot write out and proceeds startup
      - allows tomcat-users.xml to be configured as readonly. I think it
works like this:


       <Resource name="UserDatabase" auth="Container"
          description="User database that can be updated and saved">
       <ResourceParams name="UserDatabase">


Notice the new last parameter element:


Ali Kassem wrote:
> Thanks, but i don't have file called And the user
> have read permission to tomcat-users.xml 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message