Hitachi

Hitachi Application Server V10 Command Reference Guide (For UNIX® Systems)


2.4.2 change-admin-password

Changes the administrator password.

Synopsis

asadmin [asadmin-options] change-admin-password [--help]
    [--domaindir domain-root-dir [--domain_name domain-name]]

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The change-admin-password subcommand of asadmin changes the administrator password. The change-admin-password subcommand is interactive, because it prompts the user for the old administrator password, the new administrator password, and for confirmation of the new password. The new password must contain at least 8 characters.

This subcommand fails in the following instances:

If more than one administrator is configured on Java EE Server, you must run the asadmin command with the --user option to change the password for a specific user.

This subcommand is supported in both local and remote modes.

Precondition

If more than one administrator is configured for Java EE Server, the user must run the asadmin command with the --user option to change the password for that user.

Arguments

--help | -?

Displays the help text for the subcommand.

--domaindir domain-root-dir

Specifies the parent directory of the domain specified in the --domain_name option. When this option is used, the change-admin-password subcommand operates in local mode.

Type: String

The following values can be specified:

  • Path of a domain directory

Default value: N/A

--domain_name domain-name

Specifies the domain of the admin user. This option is not required if the directory specified by the --domaindir option contains only one domain.

Type: String

The following values can be specified:

  • Path of a domain name

Default value: N/A

Examples

The following example changes the Administrator Password for a single user in single mode.

asadmin --user admin change-admin-password

Exit Status

Exit Status

Explanation

0

command executed successfully.

1

error in executing the command.