Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- changes the administrator password
change-admin-password [--help]
The change-admin-password subcommand modifies the administrator password. The change-admin-password subcommand is interactive because the subcommand prompts the user for the old administrator password, for the new administrator password, and for confirmation of the new administrator password. The new password must contain at least 8 characters.
If the only user is an anonymous user without a password, this subcommand fails.
For security purposes, create a password-protected user account with administrator privileges. To create this account, use the create-file-user(1) or the Administration Console. After creating this user account, remove the anonymous user to restrict access to GlassFish Server settings.
If more than one administrator is configured for GlassFish Server, you must run the asadmin command with the --user option to change the password for that user. For more information, see the examples in this help page.
This command is supported in remote mode only.
Displays the help text for the subcommand.
Example 1 Changing the Administrator Password For a Single User in Multimode
asadmin --user admin asadmin> change-admin-password Please enter the old admin password> Please enter the new admin password> Please enter the new admin password again> Command change-admin-password executed successfully.
Example 2 Changing the Administrator Password For a Single User in Single Mode
asadmin --user admin change-admin-password Please enter the old admin password> Please enter the new admin password> Please enter the new admin password again> Command change-admin-password executed successfully.
command executed successfully
command failed
create-file-user(1), delete-password-alias(1), list-password-aliases(1), update-password-alias(1)