Modify

Opened 10 years ago

Closed 9 years ago

#2698 closed defect (fixed)

failsafe mode breaks if busybox built with /bin/login support

Reported by: b.candler@… Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: Cc:

Description

In a standard install, /bin/login is a dummy script which allows a telnet login if no root password has been set, or if the device is started in failsafe mode.

However, if you build busybox with 'login' support, then /bin/login is replaced with a real login program. Failsafe mode no longer works for password recovery. But more critically, if you didn't set a root password in the image, you are entirely locked out of the unit: neither telnet, ssh nor failsafe will let you in, so for users without console access, the device is effectively bricked. More info at http://forum.openwrt.org/viewtopic.php?id=11910

Unless this is intentional, I'd suggest the simplest solution is to rename /bin/login to (say) /bin/login.failsafe, and update the script(s) which reference it to use this new name, which AFAICT are only

  • package/base-files/files/etc/preinit
  • package/busybox/files/telnet

Another option might be for the default /etc/passwd to have an empty password for root, rather than '!' (login not allowed), but I've not tested this.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r15097

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.