timeout setting for login

Denys Vlasenko vda.linux at googlemail.com
Wed Feb 8 13:04:33 UTC 2017


On Tue, Feb 7, 2017 at 5:18 PM, Patrick Pief <p.pief at zoho.com> wrote:
>  ---- On Mon, 06 Feb 2017 20:33:39 +0100 Denys Vlasenko <vda.linux at googlemail.com> wrote ----
>  > Traditionally, Unix logins are not handled by running "login"
>  > program in a loop. "getty" is run in a loop, and it has no timeout.
>  > When user enters username, then getty execs login.
>  > _Then_ login can time out.
>  >
>  > This is not done on a whim. For example, getty sets up a new session
>  > and ensures than (only) this session has tty as controlling tty.
>  >
>
> If a serial console is set through kernel parameters, why set it up again?
> The tty is at that point seems to be configured and ready, but I might not be
> understand what getty is for and what a "controlling tty" is (exclusive usage?),
> I guess I'm going to research it or ask at [unix.se].

A good explanation is at

http://www.win.tue.nl/~aeb/linux/lk/lk-10.html


More information about the busybox mailing list