Sun GlassFish Enterprise Server v3 Administration Guide

ProcedureTo Create a File User

Use the create-file-user subcommand in remote mode to create a new user by adding a new entry to the keyfile. The entry includes the user name, password, and any groups for the user. Multiple groups can be specified by separating the groups with colons (:).

Creating a new file realm user is a dynamic event and does not require server restart.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. If the user will belong to a particular group, see the current groups by using the list-file-groups(1) subcommand.

  3. Create a file user by using the create-file-user(1) subcommand.


Example 12–5 Creating a User

This example create user Jennifer on the default realm file (no groups are specified).


asadmin> create-file-user --user admin 
--passwordfile=c:\tmp\asadminpassword.txt Jennifer
Command create-file-user executed successfully.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help create-file-user at the command line.