06-30-2003 09:59 AM - edited 03-10-2019 07:23 AM
Is it possible to have a local user only have authorization to a certain set of commands?
I want user x to have access to only:
enable
configure terminal
gatekeeper
alias static
no alias static
write memory
Is this possible?
06-30-2003 10:22 AM
Yes, this is possible by using the below methods described here using command authorization and assigning the correct privilege level to these users.
http://www.cisco.com/en/US/partner/tech/tk583/tk547/technologies_tech_note09186a008009465c.shtml
Thanks,
yatin
06-30-2003 11:00 AM
I don't have a CCO account, so I can't read those webpages.
I made a user and assigned him to level 0, then I enter this command:
privilege exec level 0 show gatekeeper endpoints
i write to memory and log back in and the user can still do everything. what am i doing wrong?
06-30-2003 11:12 AM
Here's some more info with config example.
aaa new-model
aaa authentication login default [group] local
aaa authorization exec default [group] local
Make sure to create the local user database as follows:
username abc privilege 0 password abc
username xyz privilege 1 password xyz
username special privilege 5 password special
username superuser privilege 15 password super
With the above setup, user abc can execute only disable, enable, exit, help, and logout commands.
User xyz can execute all the level 0 and level 1 commands.
User superuser can execute all the commands on the router.
On the router these are the 3 level of default commands:
-privilege level 0 includes the disable, enable, exit, help, and logout commands
- privilege level 1 normal level on Telnet; includes all user-level commands at the router> prompt
- privilege level 15 includes all enable-level commands at the router#
prompt
Now based on your requirement, you can create a priv level bewteen 2-14 and assign any priv level 15 commands (level 0 and 1 would be inherited by default). Here is an example:
With this, user six is only able to execute all the level 0 & 1 commands. If the user need to execute "config t" on the router, he has to add the following line to add this level 15 commans to level 6.
privilege exec level 5 configure terminal
privilege exec level 5 gatekeeper
privilege exec level 5 write memory
thanks,
yatin
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide