The mkuser command creates either a local or a remote user to access a SAN Volume Controller cluster.
>>- svctask -- -- mkuser -- -- -name -- user_name --------------> >--+- -remote-------------------------+-- ----------------------> '- -usergrp-- -- group_name_or_id -' >--+---------------------------------------+--------------------> '- -password --+----------------------+-' '- cleartext_password -' >--+-------------------------------+--------------------------->< '- -keyfile -- sshkey_filename -'
The mkuser command creates a new local or remote user to access a cluster. The command returns the ID of the created user.
You must have the Security Administrator role to create, delete, or change a user.
If you create a local user, you must specify the existing user group that the user belongs to. All local users must have a group. The user group defines roles that provide the user with access to specific operations on the cluster. You must also specify either the keyfile or password parameter, or both.
If you create a remote user, you must specify both the keyfile and password parameters. Remote users have their groups defined by the remote authentication service.
If you use the keyfile parameter, the SSH key file should be placed in the /tmp directory before running this command. When you run the command, the SSH key is copied into cluster state and activated for the user, and the input file is deleted.
An invocation example
svctask mkuser -name jane -usergrp Service -password secret
The resulting output
User, id [1], successfully created