From: Angelo De Guzman (a.deguzman@wesolv.ph.fujitsu.com)
Date: Thu Aug 31 2006 - 09:22:00 ART
Hi,
I tried this as well. Even using the default privilege the user logs out as
well after a command.
username cisco password 7 14141B180F0B
username cisco autocommand show ip int brief
R4#telnet 192.168.1.1
Trying 192.168.1.1 ... Open
User Access Verification
Username: cisco
Password:
Interface IP-Address OK? Method Status Prot
ocol
FastEthernet0/0 172.16.12.1 YES manual up up
Serial0/0 unassigned YES unset administratively down down
FastEthernet0/1 172.16.10.1 YES manual up up
Serial0/1 unassigned YES unset administratively down down
Virtual-Access1 unassigned YES unset up up
Loopback0 192.168.1.1 YES manual up up
Loopback1 10.34.19.1 YES manual up up
Loopback2 10.34.19.17 YES manual up up
Loopback3 10.34.19.33 YES manual up up
[Connection to 192.168.1.1 closed by foreign host]
Victor Cappuccio (8/22/06 3:07 AM):
>
>Hi Faryar
>
>Does this works?
>
>ROUTER(config)#username cisco password cisco
>ROUTER(config)#username cisco privilege 4
>ROUTER(config)#username cisco autocommand show ip int brief
>ROUTER(config)#line vty 0 4
>ROUTER(config-line)#login local
>ROUTER(config-line)#length ?
> <0-512> Number of lines on screen (0 for no pausing)
>
>ROUTER(config-line)#length 0
>ROUTER(config-line)#^Z
>ROUTER#
>*Mar 1 04:32:15.065: %SYS-5-CONFIG_I: Configured from console by console
>ROUTER#telnet 150.1.5.5
>Trying 150.1.5.5 ... Open
>
>
>User Access Verification
>
>Username: cisco
>Password:
>Interface IP-Address OK? Method Status
>Protocol
>Ethernet0/0 150.1.12.5 YES NVRAM up up
>
>Serial0/0 150.1.13.1 YES NVRAM up up
>
>Serial0/1 unassigned YES NVRAM administratively down
>down
>Serial0/2 unassigned YES NVRAM administratively down
>down
>Loopback0 150.1.5.5 YES NVRAM up up
>
>[Connection to 150.1.5.5 closed by foreign host]
>ROUTER#
>
>Regards
>Victor.-
>
>-----Mensaje original-----
>De: nobody@groupstudy.com [mailto:nobody@groupstudy.com] En nombre de Faryar
>Zabihi (fzabihi)
>Enviado el: Lunes, 21 de Agosto de 2006 02:40 p.m.
>Para: ccielab@groupstudy.com
>Asunto: Telnet and priviledge levels
>
>I am allowing telnet from R1 to R2 and user can only do "sh X" command(x
>being whatever).
>How do I terminate the telnet connection on completion of output from
>that sh command?
>TIA,
>
> Faryar
>
>_______________________________________________________________________
>Subscription information may be found at:
>http://www.groupstudy.com/list/CCIELab.html
>
>_______________________________________________________________________
>Subscription information may be found at:
>http://www.groupstudy.com/list/CCIELab.html
>
>***********************
>No virus was detected in the attachment no filename
>
>Your mail has been scanned by InterScan MSS.
>***********-***********
>
***********************
No virus was detected in the attachment no filename
Your mail has been scanned by InterScan MSS.
***********-***********
This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:59 ART