Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Administrative user creation examples

Example creation of a user with custom capabilities  Top

The following useradmin commands create a user with a limited and specialized set of administrator capabilities. The commands carry out the following operations:

> useradmin role add only_ssh -a login-ssh 
Role <only_ssh> added.
> Thu Apr 22 10:50:05 PDT [tpubs-cf1: 
useradmin.added.deleted:info]: The role 'only_ssh' has been added.
>useradmin role add qtree_commands -a cli-qtree*,api-qtree-*
Role <qtree_commands> added.
> Thu Apr 22 10:51:51 PDT [tpubs-cf1: 
useradmin.added.deleted:info]: The role 'qtree_commands' has been 
added.
>useradmin group add ssh_qtree_admins -r only_ssh,qtree_commands
Group <rsh_qtree_admins> added.
> Thu Apr 22 10:53:07 PDT [tpubs-cf1: 
useradmin.added.deleted:info]: The group 'ssh_qtree_admins' has 
been added.
>useradmin user add wilma -g ssh_qtree_admins
New password:
Retype new password:
User <wilma> added.
> Thu Apr 22 10:54:43 PDT [tpubs-cf1: 
useradmin.added.deleted:info]: The user 'wilma' has been added.
> useradmin user list wilma
Name: wilma                           
Info: 
Rid: 131074
Groups: ssh_qtree_admins
Full Name:
Allowed Capabilities: login-ssh,cli-qtree*,api-qtree-*

Example creation of a user with no administrative capabilities  Top

In a CIFS environment, you might want to create users on the storage system that are in local groups but do not have console access or any administrative capabilities on the storage system. These users would still have the file access permissions granted by the local groups.

To add a user with no console access or administrative capabilities to a storage system, complete the following steps.

Step

Action

1

Enter the following command:

useradmin user add user_name -g "Guests"

user_name is the user name for the new user.

2

Enter the user's password when prompted.

3

To verify that you have created the user with no capabilities, enter the following command:

useradmin user list user_name

Result

"Allowed Capabilities" should be blank.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments