jdk/src/sample/share/jmx/jmx-scandir/src/etc/password.properties
author chegar
Wed, 03 Dec 2014 14:22:58 +0000
changeset 27565 729f9700483a
parent 25859 3317bb8137f4
permissions -rw-r--r--
8049367: Modular Run-Time Images Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, bradford.wetmore@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, james.laskey@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com, sundararajan.athijegannathan@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
##############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
#        Password File for Remote JMX Monitoring
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
##############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# Password file for Remote JMX API access to monitoring.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# file defines the different roles and their passwords.  The access
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# control file (jmxremote.access by default) defines the allowed
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# access for each role.  To be functional, a role must have an entry
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# in both the password and the access files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    11
# Default location of this file is $JRE/conf/management/jmxremote.password
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    12
# You can specify an alternate location by specifying a property in
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    13
# the management config file $JRE/conf/management/management.properties
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# or by specifying a system property (See that file for details).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
##############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
#    File permissions of the jmxremote.password file
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
##############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#      Since there are cleartext passwords stored in this file,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
#      this file must be readable by ONLY the owner,
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    22
#      otherwise the program will exit with an error.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
# The file format for password and access files is syntactically the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
# as the Properties file format.  The syntax is described in the Javadoc
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
# for java.util.Properties.load.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Typical password file has multiple  lines, where each line is blank,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# a comment (like this one), or a password entry.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
# A password entry consists of a role name and an associated
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
# password.  The role name is any string that does not itself contain
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
# spaces or tabs.  The password is again any string that does not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
# contain spaces or tabs.  Note that passwords appear in the clear in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# this file, so it is a good idea not to use valuable passwords.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
# A given role should have at most one entry in this file.  If a role
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
# has no entry, it has no access.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
# If multiple entries are found for the same role name, then the last one
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
# is used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
# In a typical installation, this file can be read by anybody on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
# local machine, and possibly by people on other machines.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
# For # security, you should either restrict the access to this file,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
# or specify another, less accessible file in the management config file
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
# as described above.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
# Following are two commented-out entries.  The "measureRole" role has
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
# password "QED".  The "controlRole" role has password "R&D".
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
# monitorRole  QED
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
# controlRole   R&D
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
guest  guestpasswd
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
admin  adminpasswd