getty - alternative Linux getty
getty [-ihLmnw? [-f ''issue_file''? [-l ''login_program''? [-I ''init''? [-t ''timeout''? [-H ''login_host''? port baud_rate,... [ ''term''? getty [-ihLmnw? [-f ''issue_file''? [-l ''login_program''? [-I ''init''? [-t ''timeout''? [-H ''login_host''? baud_rate,... port [ ''term''?
getty opens a tty port, prompts for a login name and invokes the /bin/login command. It is normally invoked by init(8).
getty has several non-standard features that are useful for hard-wired and for dial-in lines:
This program does not use the /etc/gettydefs (System V) or /etc/gettytab (SunOS 4) files.
Under System V, a "-" port argument should be preceded by a "--".
Baud rates should be specified in descending order, so that the null character (Ctrl-@) can also be used for baud rate switching.
This section shows examples for the process field of an entry in the /etc/inittab file. You'll have to prepend appropriate values for the other fields. See inittab(5) for more details.
For a hard-wired line or a console tty: +5 /sbin/getty 9600 ttyS1
For a directly connected terminal without proper carriage detect wiring: (try this if your terminal just sleeps instead of giving you a password: prompt.) +5 /sbin/getty -L 9600 ttyS1 vt100
For a old style dial-in line with a 9600/2400/1200 baud modem: +5 /sbin/getty -mt60 ttyS1 9600,2400,1200
For a Hayes modem with a fixed 115200 bps interface to the machine: (the example init string turns off modem echo and result codes, makes modem/computer DCD track modem/modem DCD, makes a DTR drop cause a dis-connection and turn on auto-answer after 1 ring.) +5 /sbin/getty -w -I 'ATE0Q1&D2&C1S0=1 15' 115200 ttyS1
The issue-file (/etc/issue or the file set with the -f option) may contain certain escape codes to display the system name, date and time etc. All escape codes consist of a backslash (\) immediately followed by one of the letters explained below.
displays as
This is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30
/var/run/utmp, the system status file.
/etc/issue, printed before the login prompt.
/dev/console, problem reports (if syslog(3) is not used).
/etc/inittab, init(8) configuration file.
The baud-rate detection feature (the -m option) requires that getty be scheduled soon enough after completion of a dial-in call (within 30 ms with modems that talk at 2400 baud). For robustness, always use the -m option in combination with a multiple baud rate command-line argument, so that BREAK processing is enabled.
The text in the /etc/issue file (or other) and the login prompt are always output with 7-bit characters and space parity.
The baud-rate detection feature (the -m option) requires that the modem emits its status message after raising the DCD line.
Depending on how the program was configured, all diagnostics are written to the console device or reported via the syslog(3) facility. Error messages are produced if the port argument does not specify a terminal device; if there is no utmp entry for the current process (System V only); and so on.
W.Z. Venema <wietse@wzv.win.tue.nl>
Eindhoven University of Technology
Department of Mathematics and Computer Science
Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
Peter Orbaek <poe@daimi.aau.dk>
Linux port and more options. Still maintains the code.
Eric Rasmussen <ear@usfirst.org>
Added -f option to display custom login messages on different terminals.
Sat Nov 25 22:51:05 MET 1989
96/07/20
From everything i have read, i dont believe that this method will work with non-serial modems such as PCI card. If im wrong about this statement, someone please tell me. Abruces@cfl.rr.com Thanks, Adam Smith
12 pages link to getty(8):