Oracle GlassFish Server 3.0.1 Administration Guide

ProcedureTo Update a Password Alias

Use the update-password-alias subcommand in remote mode to change the password for an existing password alias. The update-password-alias subcommand takes both a secure interactive form, in which the user is prompted for all information, and a more script-friendly form, in which the password is propagated on the command line.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Update an alias by using the update-password-alias(1) subcommand.

  3. Type the password when prompted.


Example 11–6 Updating a Password Alias

This example updates the password for the jmspassword-alias alias:


asadmin> update-password-allias /home/password.txt jsmpassword-alias

You are prompted to type the new password for the alias:


Please enter the alias password>new-secret-password
Please enter the alias password again>new-secret-password
Command update-password-alias executed successfully

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help update-password-alias at the command line.