change-admin-password
change-admin-password
Changes the administrator password
Synopsis
asadmin [asadmin-options] change-admin-password [--help]
[--domaindir domain-root-dir [--domain_name domain-name]]
Description
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.
If a blank password is provided, this subcommand fails if secure administration is enabled.
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 Eclipse GlassFish settings.
If more than one administrator is configured for Eclipse GlassFish, 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 subcommand is supported in local mode and remote mode. If the
--domaindir or --domain_name option is specified, the
change-admin-password subcommand operates in local mode. If neither
option is specified, the change-admin-password subcommand first
attempts to operate in remote mode. If neither option is specified and
the DAS is not running, the change-admin-password subcommand operates
in local mode, using the default values for the --domaindir and
--domain_name options.
Options
- asadmin-options
-
Options for the
asadminutility. For information about these options, see theasadmin(1M) help page. --help-?-
Displays the help text for the subcommand.
--domaindir-
Specifies the parent directory of the domain specified in the
--domain_nameoption. When this option is used, thechange-admin-passwordsubcommand operates in local mode. --domain_name-
Specifies the domain of the admin user.
This option is not required if the directory specified by the--domaindiroption contains only one domain.