Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Create a File User

The remote create-file-user command enables you 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 commands require a running server.

  2. If the user will belong to a particular group, list the current file groups:

    asadmin list-file-groups –user admin –passwordfile passwords.txt

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

Example 7–5 Creating a User

The following example command create user Jennifer on the default realm file (no groups are specified):

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

Information similar to the following is displayed:

Command create-file-user executed successfully.

See Also

To see the full syntax and options of the command, type asadmin create-file-user --help at the command line.