Saving the master password when creating a domain is pretty straight forward just pass the --savemasterpassword flag when executing the create-domain command ${glassfish_install}/bin/asadmin create-domain --savemasterpassword mydomain Enter admin user ...read more