Scroll to navigation

MINGETTY(8) Linux Programmer's Manual MINGETTY(8)

NAME

mingetty - minimal getty for consoles

SYNOPSIS

mingetty [--noclear] [--nonewline] [--noissue] [--nohangup] [--nohostname] [--long-hostname] [--loginprog=/bin/login] [--nice=10] [--delay=5] [--chdir=/home] [--chroot=/chroot] [--autologin username] [--loginpause] tty

DESCRIPTION

mingetty is a minimal getty for use on virtual consoles. Unlike agetty(8), mingetty is not suitable for serial lines. I recommend using mgetty(8) for this purpose.

OPTIONS

Do not clear the screen before prompting for the login name (the screen is normally cleared).
Do not print a newline before writing out /etc/issue.
Do not output /etc/issue.
Do not call vhangup() to disable writing to this tty by other applications.
Do not print the hostname before the login prompt.
By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown.
Change the login app.
Change the priority by calling nice().
Sleep this many seconds after startup of mingetty.
Change into this directory before calling the login prog.
Call chroot() with this directory name.
Log the specified user automatically in without asking for a login name and password. Check the -f option from /bin/login for this.
Wait for any key before dropping to the login prompt. Can be combined with --autologin to save memory by lazily spawning shells.

ISSUE ESCAPES

mingetty recognizes the following escapes sequences which might be embedded in the /etc/issue file:

insert current day (localtime),
insert line on which mingetty is running,
inserts machine architecture (uname -m),
inserts machine's network node hostname (uname -n),
inserts domain name,
inserts operating system release (uname -r),
insert current time (localtime),
inserts operating system name,
resp. \U the current number of users which are currently logged in. \U inserts "n users", where as \u only inserts "n".
inserts operating system version (uname -v).

EXAMPLE

"Linux eos i386 #1 Tue Mar 19 21:54:09 MET 1996" was produced by putting "\s \n \m \v" into /etc/issue.

FILES

/etc/issue, /var/run/utmp.

SEE ALSO

mgetty(8), agetty(8).

AUTHOR

Copyright © 1996 Florian La Roche <laroche@redhat.com>. Man-page written by David Frey <David.Frey@eos.lugs.ch> and Florian La Roche.

6 Apr 1996 Debian-Local