How to change tomcat jmx password's file permission

user804157 picture user804157 · Jun 28, 2011 · Viewed 19.4k times · Source

I am trying to secure JMX access on my local tomcat instance hosted on Windows platform. I have created access and password files and plugged those using the following VM arguments:

-Dcom.sun.management.jmxremote.password.file
-Dcom.sun.management.jmxremote.access.file 

But I am running into an issue during tomcat start-up: Error: Password file read access must be restricted. I tried changing the password's file owner and access using file security tab but it doesn't seem to be working.

Any thoughts?

Answer

helios picture helios · Jun 28, 2011

Follow the instructions on this page to protect the password file.