cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
581
Views
0
Helpful
12
Replies

Priv exec level not working

jigsaw2026
Level 1
Level 1

Hi,

I want a user to be able to view the running config but not make any changes - I read somewhere that the way to do this was as follows:

privilege exec level 3 show running-config

username auser priv 3 password xxxxx

This works in that I'm able to log on as auser, but when I try to view the running config, all I see is:

arouter#sh run

Building configuration...

Current configuration : 49 bytes

!

boot-start-marker

boot-end-marker

!

!

!

!

end

Any help would be much appreciated.

Thanks,

J

1 Accepted Solution

Accepted Solutions

hey, "sh startup-config" gives a full view of the configuration. Sh run doesnt work here.

View solution in original post

12 Replies 12

Richard Burts
Hall of Fame
Hall of Fame

J

I think that it is not possible to do what you are trying to do. One of the principles of IOS is that you can not see things in running config that you can not change. I believe that it reflects a security concern that if you can not change it in the config you should not see it in the config.

HTH

Rick

HTH

Rick

Thanks very much for your response Rick. So what is the best thing to do if you have a user that basically needs read only rights?

J

J

You might try show startup instead of show run. Give it a try and let us know what happens.

HTH

Rick

HTH

Rick

try the command:

sh running-config view full

let us know if it helps

Sorry, it didn't help, but thank you for your reply.

can you provide the configs.

also ios ver

hey, "sh startup-config" gives a full view of the configuration. Sh run doesnt work here.

well i guess i used some diffent command in which you can see the full config.

the below command show the full config

privilege exec all level 3 show running-config

that is only if you type

show running-config view full.

On the other hand all show commands are enabled..

there should be a way..... but need to work on this

Thanks all for your input - much appreciated.

This worked, thank you - that will be fine for the user's needs.

so u using show startup confiig output ?

I'm using:

priv exec level 3 show startup-config

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card