how to disable show commands

Answered Question
Oct 9th, 2007

Hi,

We are having problem in disabling most of the show commands locally using AAA on router

Please review the config and let me know what is the way to disable all show commands except show ip int bri.....

Below is the config:-

privilege exec all level 7 crypto

privilege exec all level 7 release

privilege exec all level 7 renew

privilege exec all level 7 tclquit

privilege exec all level 7 access-enable

privilege exec all level 7 webvpn

privilege exec all level 7 ssh

privilege exec all level 7 x28

privilege exec all level 7 x3

privilege exec all level 7 pad

privilege exec all level 7 mtrace

privilege exec all level 7 msta

privilege exec all level 7 crypto

privilege exec all level 7 release

privilege exec all level 7 renew

privilege exec all level 7 tclquit

privilege exec all level 7 access-enable

privilege exec all level 7 webvpn

privilege exec all level 7 ssh

privilege exec all level 7 x28

privilege exec all level 7 x3

privilege exec all level 7 pad

privilege exec all level 7 mtrace

privilege exec all level 7 msta

username admin privilege 15 password xxx

username rem privilege 15 secret xxx

username user1 password xxx

aaa authentication login default local

aaa authorization exec default local

I have this problem too.
0 votes
Correct Answer by Jagdeep Gambhir about 9 years 2 months ago

I was able to do it. Here is the configs

AAASWITCH(config)#username jag privilege 7 password xxxxx

AAASWITCH(config)#privilege exec level 8 show running

AAASWITCH(config)#privilege exec level 8 show ver

AAASWITCH(config)#privilege exec level 6 show ip interface brief

AAASWITCH(config)#privilege exec level 8 show user

###########################################

Results

##########################################

Username: jag

Password:

AAASWITCH#show run

^

% Invalid input detected at '^' marker.

AAASWITCH#show ver

^

% Invalid input detected at '^' marker.

AAASWITCH#show ip interface brief

Interface IP-Address OK? Method Status Prot

ocol

Vlan1 192.168.26.4 YES NVRAM up up

Vlan2 unassigned YES NVRAM administratively down down

Vlan22 192.166.22.5 YES NVRAM administratively down down

Vlan30 unassigned YES NVRAM administratively down down

AAASWITCH#show users

^

% Invalid input detected at '^' marker.

AAASWITCH#show user

^

% Invalid input detected at '^' marker.

In this way you need to set priv for all possible show commands.

If user priv is 2 then set priv for show commands more then 2.

Hope that helps

Regards,

~JG

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
azmath.hk Tue, 10/09/2007 - 11:45

I tried so many ways but still no go.

Please suggest me the configuration in which privilege level2 user dont see show commands in user mode except show ip int bri

Thanks in advance for the help u will provide

Correct Answer
Jagdeep Gambhir Wed, 10/10/2007 - 06:41

I was able to do it. Here is the configs

AAASWITCH(config)#username jag privilege 7 password xxxxx

AAASWITCH(config)#privilege exec level 8 show running

AAASWITCH(config)#privilege exec level 8 show ver

AAASWITCH(config)#privilege exec level 6 show ip interface brief

AAASWITCH(config)#privilege exec level 8 show user

###########################################

Results

##########################################

Username: jag

Password:

AAASWITCH#show run

^

% Invalid input detected at '^' marker.

AAASWITCH#show ver

^

% Invalid input detected at '^' marker.

AAASWITCH#show ip interface brief

Interface IP-Address OK? Method Status Prot

ocol

Vlan1 192.168.26.4 YES NVRAM up up

Vlan2 unassigned YES NVRAM administratively down down

Vlan22 192.166.22.5 YES NVRAM administratively down down

Vlan30 unassigned YES NVRAM administratively down down

AAASWITCH#show users

^

% Invalid input detected at '^' marker.

AAASWITCH#show user

^

% Invalid input detected at '^' marker.

In this way you need to set priv for all possible show commands.

If user priv is 2 then set priv for show commands more then 2.

Hope that helps

Regards,

~JG

Actions

This Discussion