Jboss Application Server 7 has a very simple, but sometimes difficult to find management password interface. To change the management users’ passwords requires that they be deleted and re-added, as only an add password script is provided.
The files are /opt/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties and /opt/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties, assuming Jboss is installed under /opt and your version is 7.1.1. As you probably know if you need to do this, Jboss comes with different configurations for single server or clustered servers.
To change a management user’s password, edit the above files with your favorite editor, say vi or nano, and remove the row containing the username. You need to change both, or the add user script will report an error.
Then run /opt/jboss-as-7.1.1.Final/bin/add-user.sh to add the user back with a different password.
If you need to add a new user, simply run /opt/jboss-as-7.1.1.Final/bin/add-user.sh.
It is possible to save copies of the mgmt-users.properties files and switch them out with the originals, if perhaps you have users who need temporary access to the Jboss management console.