jmxremote.password.template 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # ----------------------------------------------------------------------
  2. # Template for jmxremote.password
  3. #
  4. # o Copy this template to jmxremote.password
  5. # o Set the user/password entries in jmxremote.password
  6. # o Change the permission of jmxremote.password to read-only
  7. # by the owner.
  8. #
  9. # See below for the location of jmxremote.password file.
  10. # ----------------------------------------------------------------------
  11. ##############################################################
  12. # Password File for Remote JMX Monitoring
  13. ##############################################################
  14. #
  15. # Password file for Remote JMX API access to monitoring. This
  16. # file defines the different roles and their passwords. The access
  17. # control file (jmxremote.access by default) defines the allowed
  18. # access for each role. To be functional, a role must have an entry
  19. # in both the password and the access files.
  20. #
  21. # Default location of this file is $JRE/lib/management/jmxremote.password
  22. # You can specify an alternate location by specifying a property in
  23. # the management config file $JRE/lib/management/management.properties
  24. # or by specifying a system property (See that file for details).
  25. ##############################################################
  26. # File permissions of the jmxremote.password file
  27. ##############################################################
  28. # Since there are cleartext passwords stored in this file,
  29. # this file must be readable by ONLY the owner,
  30. # otherwise the program will exit with an error.
  31. #
  32. # The file format for password and access files is syntactically the same
  33. # as the Properties file format. The syntax is described in the Javadoc
  34. # for java.util.Properties.load.
  35. # Typical password file has multiple lines, where each line is blank,
  36. # a comment (like this one), or a password entry.
  37. #
  38. #
  39. # A password entry consists of a role name and an associated
  40. # password. The role name is any string that does not itself contain
  41. # spaces or tabs. The password is again any string that does not
  42. # contain spaces or tabs. Note that passwords appear in the clear in
  43. # this file, so it is a good idea not to use valuable passwords.
  44. #
  45. # A given role should have at most one entry in this file. If a role
  46. # has no entry, it has no access.
  47. # If multiple entries are found for the same role name, then the last one
  48. # is used.
  49. #
  50. # In a typical installation, this file can be read by anybody on the
  51. # local machine, and possibly by people on other machines.
  52. # For # security, you should either restrict the access to this file,
  53. # or specify another, less accessible file in the management config file
  54. # as described above.
  55. #
  56. # Following are two commented-out entries. The "measureRole" role has
  57. # password "QED". The "controlRole" role has password "R&D".
  58. #
  59. # monitorRole QED
  60. # controlRole R&D