how to enable "login"? login can not work with inittab

kaimi dishui at gmail.com
Wed Dec 20 02:26:20 UTC 2006


/etc # cat inittab
::sysinit:/etc/init.d/rcS
::respawn:-/bin/sh
::respawn:/bin/login
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init

I have tried to add "::respawn:/sbin/getty 115200 /dev/console", it can't
work also. thanks

On 12/20/06, Luciano Miguel Ferreira Rocha <strange at nsk.no-ip.org> wrote:
>
> On Mon, Dec 18, 2006 at 05:45:32PM +0800, kaimi wrote:
> > hi, folks:
> > if using:  ::askfirst:-/bin/sh, everything is ok, in the shell prompt, I
> can
> > login correctly, and "job control" is ok, the /dev/tts/0 is in use.
> while,
> > if add a new line for login:  ::respawn:/bin/login, there would be a
> warning
> > "-sh: can't access tty; job control turned off", and the login prompt
> > appears, when I input username "root", it shows: "-sh: root: not found",
> > after a few secs, the prompt word "Password" appears, my input password
> is
> > incorrect.
> >
>
> This seems that you have two different processes trying to access the
> same terminal (the shell and the login process).
>
> Please include your full inittab.
>
> --
> lfr
> 0/0
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20061220/4c91809d/attachment-0001.htm 


More information about the busybox mailing list