During the
installation of the JBoss 7 in windows, we are asked to enter the username and
password that can be used as admin account. In this article we will see how to
recover the password for admin account,
1) Remove the admin
account details from mgmt-user.properties file in the
$JBOSS_HOME/standalone/configuration location
2) Once the details
are removed run the add-user.bat file from the $JBOSS_HOME/bin location as
C:\Users\mjagadish\EAP-6.4.0\bin>add-user.bat
JAVA_HOME is not
set. Unexpected results may occur.
Set JAVA_HOME to
the directory of your local JDK to avoid this message.
What type of user
do you wish to add?
a) Management User
(mgmt-users.properties)
b) Application User
(application-users.properties)
(a): a
Enter the details
of the new user to add.
Realm
(ManagementRealm) :
Username : admin
User 'admin'
already exits, would you like to update the existing user password and roles
Is this correct
yes/no? yes
Password
requirements are listed below. To modify these restrictions edit the
add-user.properties configuratio
n file.
- The password must
not be one of the following restricted values {root, admin, administrator}
- The password must
contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1
non-alphanumeric
symbol(s)
- The password must
be different from the username
Password :
Re-enter Password :
What groups do you
want this user to belong to? (Please enter a comma separated list, or leave
blank for none)
[ ]:
Updated user
'admin' to file 'C:\Users\mjagadish\EAP-6.4.0\standalone\configuration\mgmt-users.properties'
Updated user
'admin' to file
'C:\Users\mjagadish\EAP-6.4.0\domain\configuration\mgmt-users.properties'
Updated user
'admin' with groups to file
'C:\Users\mjagadish\EAP-.4.0\standalone\configuration\mgmt-groups.properties'
Updated user
'admin' with groups to file
'C:\Users\mjagadish\EAP-.4.0\domain\configuration\mgmt-groups.properties'
Is this new user
going to be used for one AS process to connect to another AS process?
e.g. for a slave
host controller connecting to the master or for a Remoting connection for
server to server EJB calls. yes/no? yes
To represent the
user add the following to the server-identities definition <secret
value="amFnYWRlc2gxOTgyQA==" />
Press any key to
continue . . .
Once this process
is complete, you can login to the admin console using the new credentials.
NOTE - If you get
JBAS015243: The user ‘admin’ already exists in at least one properties file.
error, then you didn't complete steps 1.
I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in JBoss.kindly contact us http://www.maxmunus.com/contact
ReplyDeleteMaxMunus Offer World Class Virtual Instructor led training on JBoss. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Free Demo Contact us:
Name : Arunkumar U
Email : arun@maxmunus.com
Skype id: training_maxmunus
Contact No.-+91-9738507310
Company Website –http://www.maxmunus.com