S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
39-2
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 39 Configuring Users and Common Roles
Role-Based Authorization
About Roles
Each role can contain multiple users and each user can be part of multiple roles. For example, if role1
users are only allowed access to configuration commands, and role2 users are only allowed access to
debug
commands, then if Joe belongs to both role1 and role2, he can access configuration as well as
debug
commands.
Note
If you belong to multiple roles, you can execute a union of all the commands permitted by these roles.
Access to a command takes priority over being denied access to a command. For example, suppose you
belong to a TechDocs group and you were denied access to configuration commands. However, you also
belong to the engineering group and have access to configuration commands. In this case, you will have
access to configuration commands.
Tip
Any role, when created, does not allow access to the required commands immediately. The administrator
must configure appropriate rules for each role to allow access to the required commands.
Configuring Roles and Profiles
To create an additional role or to modify the profile for an existing role, follow these steps:
Note
Only users belonging to the network-admin role can create roles.
Configuring Rules and Features for Each Role
Up to 16 rules can be configured for each role. The user-specified rule number determines the order in
which the rules are applied. For example, rule 1 is applied before rule 2, which is applied before rule 3,
and so on. A user not belonging to the network-admin role cannot perform commands related to roles.
For example, if user A is permitted to perform all
show
commands, user A cannot view the output of the
show role
command if user A does not belong to the network-admin role
Command
Purpose
Step 1
switch#
config t
Enters configuration mode.
Step 2
switch(config)#
role name techdocs
switch(config-role)#
Places you in the mode for the specified role (techdocs).
Note
The role submode prompt indicates that you are
now in the role submode. This submode is now
specific to the techdocs group.
switch(config)#
no role name techdocs
Deletes the role called techdocs.
Step 3
switch(config-role)#
description
Entire Tech Docs group
Assigns a description to the new role. The description is
limited to one line and can contain spaces.
switch(config-role)#
no
description
Resets the description for the Tech Docs group.