Change Admin User Password
How do I change the password for the admin user (the user to login to the Web Admin GUI) without having to delete and recreate the domain?
I am using Sun Java System Application Server Platform Edition 8.1_02.
I have seen the change-master-password command in asadmin, but cannot find another command to change just the admin password either in asadmin or the Admin GUI itself.
This was pretty easily done in previous versions in App Server 7.
Thanks in advance.
[493 byte] By [
chungste] at [2007-11-26 8:19:10]

# 2
Hi,
Actually this was an issue before AS 8.1 UR2 patch-06 and fixed it in AS 8.1UR2 patch 06 (build15).
If you have latest 8.1UR2 patch i.e patch 9 or some patch after patch06, then you can do the following to change admin-password properly.
Procedure for Changing Admin Password (thanks to Kedar for this doc).
1. It is important to plan the change of administrative user's password for a domain, with AS 8.1UR2_patch06 and AS 8.2. This is needed if it is desired that nothing is side-effected and the experience before and after the password change is identical.
2. Stop all the node agents in the domain. This will stop all the server instances associated. Thus all the server instances and node agents are now stopped. Only Domain Admin Server is running.
3. Using either GUI or CLI, change the administrative user's password as follows:
1. CLI: asadmin update-file-user --authrealmname admin-realm ... --userpassword newpassword <admin-user-name>
2. GUI: Go to the admin-server's configuration node -> Security -> Realms -> admin-realm -> Edit File Realm User.
4. You'll see a message like the following:
[#|2005-11-03T10:40:10.690-0800|WARNING|sun-appserver-ee8.1|javax.enterprise.sy stem.tools.admin|_ThreadID=24;|The password for administrative user [security-realm: admin-realm] was changed successfully for immediate use on this domain administration server (DAS). Restart the domain, node agents [i1-na,c1-na] and server instances [c1i1,c1i2,i1] in this domain, providing new password for it to take effect on the entire domain. All the server instances need to be restarted explicitly. Refer to documentation for details.|#]
5. Restart the DAS with the new password as: asadmin start-domain --user admin --password newpassword domain1 (--password option should not be used usually, but using here just to demonstrate the instruction. A better alternative is to use --passwordfile option).
6. Let's say you have above configuration, i.e., a domain with 2 node-agents (i1na, c1-na) and 3 instances (c1i1 and c1i2 are in the same cluster named c1 and a standalone server instance i1).
7. Restart Node Agent without starting the instances with the new password as:
1. asadmin start-node-agent --user admin --password newpassword --startinstances=false i1-na
2. asadmin start-node-agent --user admin --password newpassword --startinstances=false c1-na
8. Restart the Servers and Clusters as:
1. asadmin start-cluster --user admin --password newpassword ... c1
2. asadmin start-instance --user admin --password newpassword i1
9. From now on, you will have the exact same user experience with managing the appserver, as you had before changing the admin password.
I think it will help you better.
Plz let us know whether it resolves your problem or not.
Thanks,
-Balaji.
# 3
Thanks both for the information.
I think I prefer the long term fix instead of doing the workaround, but will keep that information just in case.
Is there an easy way to find out which patch level I am at? I downloaded and installed this awhile ago and do not recall the patch level.
When I click on the version in the Admin GUI it says:
Sun Java System Application Server Platform Edition 8.1_02 (build b06-fcs)
Does that show me what patch level I am at? Maybe its the "_02"?
Again, thanks for your help.