<div dir="ltr">I found the chown in the /var/lib/dpkg/info/tomcat7.postinst. not really sure if it's in the tomcat7-admin package ....<div><br></div><div><br></div><div><div>        # configuration files should not be modifiable by tomcat7 user, as this can be a security issue</div><div>        # (an attacker may insert code in a webapp and have access to all tomcat configuration)</div><div>        # but those files should be readable by tomcat7, so we set the group to tomcat7</div><div>        chown -Rh root:$TOMCAT7_GROUP /etc/tomcat7/*</div></div><div><br></div><div><br></div><div>But this make the default configuration for jmx user/password access unsable (put the file in mode 600 for the ... tomcat7 user).</div><div><br></div><div>and i don't see were to put those files with logic (if i'm new admin and look for tomcat access config files .. i'll look in the tomcat conf folder).</div></div>