The following example changes the previously created rule (index number 155) so that the
username command is replaced by the
role command.
-
In privileged EXEC mode, use the
configure terminal command to enter global configuration mode.
device# configure terminal
-
Enter the
rule command, specifying an existing rule (index 155) and the role; and changing the
command attribute to the
role command.
device(config)# rule 155 role SecAdminUser command role
After changing rule 155, "SecAdminUser" users can execute the
role command, but not the
username command.