Login to the root shell from the serial console

Vesta laguna-mc at mail.com
Tue Jun 25 15:09:49 UTC 2019


My system have no intitab file at all, although the source code has a lot of refrences to it.
Should I create it manually and place into /etc/ dir?

Please specify more details about 2nd method, which file has to be edited to get this functionality?


B.Regards,
Alex


> Sent: Tuesday, June 25, 2019 at 2:40 PM
> From: "Mattias Schlenker" <ms at mattiasschlenker.de>
> To: busybox at busybox.net
> Subject: Re: Login to the root shell from the serial console
>
>
> Am 25.06.19 um 13:31 schrieb Vesta:
> > Board with ARM embedded Linux version 2.6.26.5 and Busybox 1.10.2
> > How to configure Busybox to accept any password when login to the root shell from the serial console?
>
>
> This is some sample inittab from a simple live linux. It runs /etc/rc on
> system startup, shows some info on the first console, starts two login
> prompts on tty2 and tty3 and two root shells (one with builtin bash, one
> with ash) on tty4 and tty5. You'd probably want to build a two line
> inittab, one with sysinit and one with an askfirst shell on your serial
> console:
>
> ::sysinit:/etc/rc
> tty1::respawn:/static/bin/show_placeholder
> tty2::respawn:/static/sbin/getty -l /static/bin/login 38400 tty2
> tty3::respawn:/static/sbin/getty -l /static/bin/login 38400 tty3
> tty4::askfirst:/static/bin/ash
> tty5::askfirst:/bin/bash
>
> Of course you could also use a login line and build an e/etc/password
> with an empty hash.
>
> Regards,
> Mattias
>
>
>
>
> >
> >
> > B.Regards,
> > Alex
> > _______________________________________________
> > busybox mailing list
> > busybox at busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
>
> --
> Mattias Schlenker - Freier IT-Fachredakteur und -autor
> redaktion at mattiasschlenker.de
>
> Mattias Schlenker - IT-Consulting, Softwareentwicklung
> consulting at mattiasschlenker.de
>
> August-Bebel-Str. 74 - D-04275 LEIPZIG - GERMANY
>
> https://github.com/mschlenker
> http://www.mattiasschlenker.de/
> http://www.arduino-hausautomation.de/
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>


More information about the busybox mailing list