Setup Guide
netoperator
netadmin Exec Config Interface Router IP Route-map Protocol MAC
secadmin Exec Config Line
sysadmin Exec Config Interface Line Router IP Route-map Protocol MAC.
myrole secadmin Exec Config Line
Modifying Command Permissions for Roles
You can modify (add or delete) command permissions for newly created user roles and system dened roles using the role mode
{ { { addrole | deleterole } role-name } | reset } command command in Conguration mode.
NOTE: You cannot modify system administrator command permissions.
If you add or delete command permissions using the role command, those changes only apply to the specic user role. They do not apply
to other roles that have inheritance from that role. Authorization and accounting only apply to the roles specied in that conguration.
When you modify a command for a role, you specify the role, the mode, and whether you want to restrict access using the deleterole
keyword or grant access using the addrole keyword followed by the command you are controlling access.
The following output displays the modes available for the role command.
DellEMC(conf)#role ?
configure Global configuration mode
exec Exec Mode
interface Interface configuration mode
line Line Configuration mode
route-map Route map configuration mode
router Router configuration mode
Examples: Deny Network Administrator from Using the show users Command.
The following example denies the netadmin role from using the show users command and then veries that netadmin cannot
access the
show users command in exec mode. Note that the netadmin role is not listed in the Role access:
secadmin,sysadmin, which means the netadmin cannot access the show users command.
DellEMC(conf)#role exec deleterole netadmin show users
DellEMC#show role mode exec show users
Role access: secadmin,sysadmin
Example: Allow Security Administrator to Congure Spanning Tree
The following example allows the security administrator (secadmin) to congure the spanning tree protocol. Note command is protocol
spanning-tree.
DellEMC(conf)#role configure addrole secadmin protocol spanning-tree
Example: Allow Security Administrator to Access Interface Mode
The following example allows the security administrator (secadmin) to access Interface mode.
DellEMC(conf)#role configure addrole secadmin ?
LINE Initial keywords of the command to modify
DellEMC(conf)#role configure addrole secadmin interface
Example: Allow Security Administrator to Access Only 10-Gigabit Ethernet Interfaces
806
Security