Hi,
Simply do the following:
username test privilege 5 password test
privilege exec all level 5 show
line vty 0 4
login local
But please note that, when access to the router is configured by privilege levels, a common issue is that the show running is configured at or below the user's privilege level. When the user executes the command, the configuration appears to be blank. This is actually by design due to that this command displays all of the commands that the current user is able to modify (in other words, all the commands at or below the user's current privilege level). The command should not display commands above the user's current privilege level because of security considerations. If so, commands such as snmp-server community could be used to modify the current configuration of the router and gain complete access to the router.
For example, if a certain privilege level is given the privilege to configure under the interface, and do show run, when a user do show run with this level, he will get only the interface configurations:
privilege configure all level 5 interface
privilege exec all level 5 show running-config
Router#sh run
Building configuration...
Current configuration : 1055 bytes
!
boot-start-marker
boot-end-marker
!
!
!
!
!
interface Loopback0
ip address 10.10.10.2 255.255.255.255
!
interface Serial1/1
no ip address
shutdown
!
end
HTH, please do rate all helpful replies,
Mohammed Mahmoud.