Enabling user logins with a getty service
If your distribution uses systemd, you can enable getty services to allow user logins on a terminal.
Before you begin
You must explicitly enable user logins for the HVC terminals hvc1 to hvc7 and for any dynamically attached virtual or real 3270 terminals.
On all other terminals that are available in your
environment systemd automatically enables user logins for you. In particular you do not need to
enable user logins for the following terminals:
- hvc0
- 3270/tty1
- Terminals that are available in KVM guests
Tip: Instead of the getty service, use the ttyrun service to enable user logins on HVC
terminals. With
the ttyrun service, you are free to change the conditions that affect the availability of HVC
terminals.
Procedure
Perform these steps to use a getty service for enabling user logins on a terminal:
Results
Example
# systemctl enable serial-getty@3270-tty2.service
# systemctl start serial-getty@3270-tty2.service