Changing the default Master Password for a domain in Glassfish/Sun Java System Application Server
If someone wants to change the default master password for a particular domain in Glassfish/Sun Java System Application server , they can do it easily using the Sun Java System Application server's asadmin command "change-master-password".
Here is the syntax of this command:
Usage: change-master-password [--terse=false] [--echo=false] [--interactive=true] [--savemasterpassword=false] [--domaindir domain_directory] domain_name
Example:
asadmin> change-master-password domain1
Please enter the master password> Here you enter the old master password
Please enter the new master password> Enter the new master password
Please enter the new master password again> Enter the new master password again.
Master password changed for domain1.
Now the master password for the domain is changed, and all other future admin operations on that particular instance prompts for the new master password, or takes from the --passwordfile option.
Posted at 12:00PM Apr 24, 2006 by shaline in Sun |