Sun Java System Message Queue 4.1 Administration Guide

User Manager Utility

The User Manager utility (imqusermgr) is used for populating or editing a flat-file user repository. The utility must be run on the same host where the broker is installed; if a broker-specific user repository does not yet exist, you must first start up the corresponding broker instance in order to create it. You will also need the appropriate permissions to write to the repository: on the Solaris or Linux platforms, this means you must be either the root user or the user who originally created the broker instance.

Table 13–15 lists the subcommands available with the imqusermgr command. In all cases, the -i option specifies the instance name of the broker to whose user repository the command applies; if not specified, the default name imqbroker is assumed.

Table 13–15 User Manager Subcommands

Syntax 

Description 

add [-i instanceName]

    -u userName -p password


    [-g group]


Add user and password to repository 

The optional -g option specifies a group to which to assign this user:

    admin


    user


    anonymous


delete [-i instanceName]

    -u userName


Delete user from repository 

update [-i instanceName]

    -u userName -p password


    [-a activeStatus]


update [-i instanceName]

    -u userName -a activeStatus


    [-p password]


Set user’s password or active (or both) 

The -a option takes a boolean value specifying whether to make the user active (true) or inactive (false).

Default value: true.

list [-i instanceName]

    [-u userName]


Display user information 

If no user name is specified, all users in the repository are listed.  

In addition, the options listed in Table 13–16 can be applied to any subcommand of the imqusermgr command.

Table 13–16 General User Manager Options

Option 

Description 

-f

Perform action without user confirmation 

-s

Silent mode (no output displayed) 

-v

Display version information [Any other options specified on the command line are ignored. ]

-h

Display usage help