05-12-2008 02:14 AM - edited 03-05-2019 10:54 PM
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
Solved! Go to Solution.
05-12-2008 05:17 AM
hey, "sh startup-config" gives a full view of the configuration. Sh run doesnt work here.
05-12-2008 03:06 AM
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
05-12-2008 03:08 AM
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
05-12-2008 03:43 AM
J
You might try show startup instead of show run. Give it a try and let us know what happens.
HTH
Rick
05-12-2008 04:49 AM
try the command:
sh running-config view full
let us know if it helps
05-12-2008 04:56 AM
Sorry, it didn't help, but thank you for your reply.
05-12-2008 05:11 AM
can you provide the configs.
also ios ver
05-12-2008 05:17 AM
hey, "sh startup-config" gives a full view of the configuration. Sh run doesnt work here.
05-12-2008 05:32 AM
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
05-12-2008 05:42 AM
Thanks all for your input - much appreciated.
05-12-2008 05:42 AM
This worked, thank you - that will be fine for the user's needs.
05-12-2008 06:04 AM
so u using show startup confiig output ?
05-12-2008 06:14 AM
I'm using:
priv exec level 3 show startup-config
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: