Chapter 3. Adding a Remote Console User
Abstract
The server's remote command console is not configured with a default user. Before you can connect to the server's console remotely, you must add a user to the configuration.
Red Hat JBoss A-MQ is not installed with a default user for the remote console. Before you can remotely manage a server, you must add a user by editing
InstallDir/etc/users.properties
.
Important
The information in this file is unencrypted so it is not suitable for environments that require strict security.
To add a user:
- Open
InstallDir/etc/users.properties
in your favorite text editor. - Locate the line
# admin=admin,admin
.This line specifies a useradmin
with the passwordadmin
and the roleadmin
. - Uncomment the line by removing the leading
#
. - Change the first
admin
to the desired user name. - Change the
admin
to the desired password. - Save the changes.
- If you intend to use the ActiveMQ Web console, you must specify the credentials for it. Open
InstallDir/etc/system.properties
in your favorite text editor and search for the following lines:# # Authentication - must match an entry in user.properties with the admin privilege # #activemq.jmx.user=admin #activemq.jmx.password=admin
Uncomment theactivemq.jmx.user
andactivemq.jmx.password
settings (by removing the leading#
) and change the username and password values to be the same as the values you just defined in theetc/users.properties
file.