OpenWrt Forum Archive

Topic: failsafe mode - Telnet login failed.

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Router: wrtsl54gs
Firmware: http://downloads.openwrt.org/whiterussi … -jffs2.bin

Problem: I installed flashed the firmware over successfully, and I used ssh to access the router.  I tried to put the router into client mode and somehow mixed up the interfaces, preventing me from accessing the router.   So I decided to try failsafe mode seeing I know it isn't bricked, nvram is just pooched.   So I listened on the port (nc -l -p 4919 -u) and instead of:
#1) getting a message saying "Press reset now, to enter Failsafe!" I get "(dummy message)"
#3) having the dmz light turn on the "Secure Easy Setup" light turns on.

ok, I press and hold the reset button anyways and the "Secure Easy Setup" light starts blinking.

So I ping 192.168.1.1 and that works fine... so now I try to telnet:

[root@latitude ~]# telnet 191.168.1.1 23
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.

Login failed.
Connection closed by foreign host.

Does anyone have any ideas or suggestions how I can it back to a working state?  Thanks so much for taking the time to read this.  I am really stuck.

Sam

(Last edited by swinchen on 27 Jul 2007, 17:48)

I ran into the same problem. From what I can see, the FAILSAFE variable is not exported anymore from within /etc/preinit script .. therefore the /bin/login script will not allow you to log in, if the original pasword (which is set to "!" in /etc/passwd) was changed - under normal circumstances this will only occur if you use the jffs2 images, as the squashfs images only mount /rom in failsafe mode, which contains the original /etc/passwd.
For me, I made my own image, with altered /etc/passwd in /rom ...

Regards

The discussion might have continued from here.