Nov 8, 2018

How to change password on Oracle GlassFish Server 3.1

  1. Ensure that the server is running. Remote subcommands require a running server.
  2. Change the admin password by using the change-admin-password subcommand.
  3. Enter the old and new admin passwords when prompted.
  4. Restart GlassFish Server.
This example changes the admin password for user anonymous from adminadmin to newadmin:
asadmin> change-admin-password --username anonymous
You are prompted to enter the old and the new admin passwords:
Enter admin password>adminadmin
Enter new admin password>newadmin
Enter new admin password again>newadmin
Information similar to the following is displayed:
Command change-admin-password executed successfully.