1. Navigate to …jboss-eap-5.1jboss-asserverserver1confprops .
2. Open the jmx-console-roles.properties file and add roles as required. I added the role saky , which I use to login to jmx-console. Refer the sample file
# A sample roles.properties file for use with the UsersRolesLoginModule
admin=JBossAdmin,HttpInvoker
saky=JBossAdmin,HttpInvoker
3. Similarly, Open the jmx-console-users.properties file and edit passwords for the users.
# A sample users.properties file for use with the UsersRolesLoginModule
admin=admin
saky=saky
Important: jmx-console is mapped in login-config.xml ( …jboss-eap-5.1jboss-asserverserver1conf ).
<application-policy name=”jmx-console”>
<authentication>
<login-module code=”org.jboss.security.auth.spi.UsersRolesLoginModule”
flag=”required”>
<module-option name=”usersProperties”>props/jmx-console-users.properties</module-option>
<module-option name=”rolesProperties”>props/jmx-console-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
Note: Restart the server if any changes are made in any of these configuration settings