Creating and working with users using the CLI

You can use the command-line interface (CLI) to create and work with users.

To create and work with users, follow these steps:

  1. Issue the svctask mkuser CLI command to create either a local user or a remote user to access the SAN Volume Controller. For example:
    svctask mkuser -name user_name -remote
    where user_name specifies the name of the user. The remote parameter specifies that the user authenticates to the remote authentication service.
    svctask mkuser -name user_name -usergrp group_name_or_id
    where user_name specifies the name of the user and group_name_or_id specifies the name or ID of the user group with which the local user is to be associated. The usergrp parameter specifies that the user authenticates to the cluster using cluster authentication methods.
  2. Issue the svctask chuser CLI command to change the attributes of an existing user. For example:
    svctask chuser -usergrp group_id_or_name user_id_or_name
    where the group_id_or_name specifies the new group for the user and user_id_or_name specifies the user to be changed.
  3. Issue the svctask chcurrentuser CLI command to change the attributes of the current user. For example:
    svctask chcurrentuser -nokey
    where the nokey parameter specifies that the SSH key of the user is to be deleted.
  4. Issue the svctask rmuser CLI command to delete a user: For example:
    svctask rmuser user_id_or_name
    where user_id_or_name specifies the user to be removed.
  5. Issue the svcinfo lsuser CLI command to display a list of users that have been created on the cluster. For example:
    svcinfo lsuser user_id_or_name
    where user_id_or_name specifies the ID or name of the user view. If you do not specify an ID or name, the concise view is displayed. If you do not specify a user ID or name, all users on the cluster are displayed.
  6. Issue the svcinfo lscurrentuser CLI command to display the name and role of the logged-in user. For example:
    svcinfo lscurrentuser 

    The name and the role of the user are displayed.

Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.