Enabling a terminal for user logins using inittab
If your distribution uses inittab, you can use an inittab entry to allow user logins on a terminal.
<id>:2345:respawn:/sbin/mingetty --noclear <dev>
- <id>
- is a unique identifier for the entry in the inittab file.
- <dev>
- specifies the device node of the terminal, omitting the leading
/dev/
. For example, instead of specifying /dev/sclp_line0, specifysclp_line0
.
With mingetty, you must explicitly export
the TERM environment variable with the terminal name.
The terminal name indicates the capabilities of the terminal device.
Examples for terminal names are linux
, dumb
, xterm
,
or vt220
.
# export TERM=linux
Instead of mingetty, you can use agetty, which can set the TERM environment variable at startup.
linux
and
enable user logins with the agetty program add a line of this form
to the /etc/inittab file: <id>:2345:respawn:/sbin/agetty -L 9600 <dev> linux
where <id> and <dev> have
the same meanings as in the mingetty example.The /etc/inittab file might already have an entry for a terminal. Be sure not to provide multiple entries for the same device or ID. If an existing entry uses a name that you cannot map to the udev-created nodes or nodes you created yourself, you can comment it out and replace it.
For more information, see the man page for the inittab file.
Example
ttyS0
for
user logins with mingetty specify, for example: 1:2345:respawn:/sbin/mingetty --noclear ttyS0