tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <tomcat-us...@list-post.mks-mail.de>
Subject Re: How to prevent deletion of comments from tomcat-users.xml
Date Sun, 20 Apr 2008 19:34:35 GMT
Ben Stover wrote:

> As far as I noticed all comments in tomcat-users.xml
> 
> are striped off after Tomcat started.
> 
> How do I prevent this deletion of comments (permanently)?

In server.xml, add readonly="true" to the UserDatabase <Resource>, for
example:

<Resource name="UserDatabase" auth="Container"
          type="org.apache.catalina.UserDatabase"
          description="User database that can be updated and saved"
          factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml"
          readonly="true" />

Regards
  mks

---------------------------------------------------------------------
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