10-24-2025 09:58 AM
Hello,
I have a contractor doing some work for me and he needs to see a few of my access switches.
I set him up with a username with privilege 5 and used a rotary group to allow him direct login to enable mode on a specific port.
Problem is when I tested, a sh run is not showing me any of the running config.
Am I doing something wrong?
2 different switches.
both are 3560x running 15.2(1)E2
commands available to level 5
(output from admin login level 15)
#sh run | inc privilege
privilege exec level 5 show running-config
privilege exec level 5 show logging
(output under his login)
#sh run
Building configuration...
Current configuration : 115 bytes
!
! Last configuration change at 21:29:01 CDT Tue May 31 2011
!
boot-start-marker
boot-end-marker
!
!
!
!
!
!
end
#sh pri
Current privilege level is 5
Thanks,
D
10-25-2025 12:58 PM
Hello @zietgiestt,
what you’re seeing is actually expected Cisco IOS behavior.
The “show running‑config” command only displays commands that the user has permission to modify at their current privilege level.
So if the privilege level does not include any configuration‑mode permissions, the command succeeds but returns almost no output.
This is a hard-coded security feature to prevent non‑admin users from reading sensitive configuration such as AAA, keys, passwords, or SNMP communities and implemented by configuration‑view filtering based on privilege level.
However, you can bypass this security restriction by using the file system and the 'more system:running‑config' command.
This allows the user to read the system: virtual file (which contains the entire running config):
! Authorize file access at privilege level 5
!
file privilege 5
!
! Allow the 'more' command at privilege level 5
!
privilege exec level 5 more
privilege exec level 5 show startup-config
privilege exec level 5 show logging
!
username contractor privilege 5 secret Cisco123
As a result the “contractor” user can log in and use the 'more system:running-config' as well as accessing the startup-config and the log files.
Needless to say that you need to be very careful when bypassing security features as they are implemented on purpose!
HTH!
10-26-2025 04:01 AM
is this a Local user or using any AAA?
check this guide and more explanation :
10-24-2025 02:30 PM
Hello,
I have a contractor doing some work for me and he needs to see a few of my access switches.
I set him up with a username with privilege 5 and used a rotary group to allow him direct login to enable mode on a specific port.
Problem is when I tested, a sh run is not showing me any of the running config.
Am I doing something wrong?
2 different switches.
both are 3560x running 15.2(1)E2
commands available to level 5
(output from admin login level 15)
#sh run | inc privilege
privilege exec level 5 show running-config
privilege exec level 5 show logging
(output under his login)
#sh run
Building configuration...
Current configuration : 115 bytes
!
! Last configuration change at 21:29:01 CDT Tue May 31 2011
!
boot-start-marker
boot-end-marker
!
!
!
!
!
!
end
#sh pri
Current privilege level is 5
Thanks,
D
10-26-2025 06:33 AM
You are not doing anything wrong. It is one of the principles of the operating system that a user can not see things in the running config that they are not allowed to change. Try using show startup and see what you get.
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