Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Change the Administration Password

The remote change-admin-password command allows you to change the administration password. You are prompted for the old and new admin passwords, with confirmation.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Change the admin password by using the change-admin-password(1) command.

  3. Enter the old and new admin password as prompted.


Example 6–1 Changing the Admin Password

The following example changes the admin password for user anonymous from adminadmin to newadmin:


asadmin change-admin-password --user anonymous

Information similar to the following is displayed:


Enter admin password>adminadmin
Enter new admin password>newadmin
Enter new admin password again>newadmin
Command change-admin-password executed successfully.

See Also

To see the full syntax and options of the command, type asadmin change-admin-password --help at the command line.