[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Login to the root shell from the serial console
From:       Vesta <laguna-mc () mail ! com>
Date:       2019-06-27 10:31:52
Message-ID: trinity-4691674f-632b-4c3a-88c7-f8180ae3e309-1561631512184 () 3c-app-mailcom-lxa03
[Download RAW message or body]

In order to use the inittab, should I to enable two 'inittab' options in Busybox .config file:

CONFIG_INIT=y
CONFIG_FEATURE_USE_INITTAB=y

The only two above lines is required, or I should set some other lines too? The defaults settings are:

# Init Utilities
#
# CONFIG_INIT is not set
# CONFIG_DEBUG_INIT is not set
# CONFIG_FEATURE_USE_INITTAB is not set
# CONFIG_FEATURE_KILL_REMOVED is not set
CONFIG_FEATURE_KILL_DELAY=0
# CONFIG_FEATURE_INIT_SCTTY is not set
# CONFIG_FEATURE_INIT_SYSLOG is not set
# CONFIG_FEATURE_EXTRA_QUIET is not set
# CONFIG_FEATURE_INIT_COREDUMPS is not set
# CONFIG_FEATURE_INITRD is not set
CONFIG_HALT=y
# CONFIG_MESG is not set



B.Regards,
Alex

> Sent: Tuesday, June 25, 2019 at 2:40 PM
> From: "Mattias Schlenker" <ms@mattiasschlenker.de>
> To: busybox@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@busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
>
> --
> Mattias Schlenker - Freier IT-Fachredakteur und -autor
> redaktion@mattiasschlenker.de
>
> Mattias Schlenker - IT-Consulting, Softwareentwicklung
> consulting@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@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic