Just for reference, let me add SLES12 in this discussion too. I recently 
installed a SLES12 machine and there it should be configured in systemd.

In systemd you don’t have the inittab. The user is to be logged on on ttyS0, so 
you need to ensure [email protected] is started during boot. The 
serial-getty services will be started automatically during boot when the 
devices are detected (hvc, ttyS0, ttysclp).

In order to logon a user you need to create 
/etc/systemd/system/[email protected]/autologin.conf with the 
following content:

[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root -s %I dumb

When the service is started it will read the autologin.conf file and start the 
agetty program on ttyS0.

I have found this in the archlinux wiki at 
https://wiki.archlinux.org/index.php/Getty and updated the agetty options to 
match the requirements for an S390 console device.

Met vriendelijke groet/With kind regards/Mit freundlichen Grüßen,
Berry van Sleeuwen

-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Mark Post
Sent: Wednesday, August 16, 2017 12:27 AM
To: [email protected]
Subject: Re: Auto login root on 3270 console ttyS0

>>> On 8/15/2017 at 06:17 PM, Donald Russell <[email protected]> wrote:
> I run a SLES 11 (for emergency recovery) and RHEL 7 system on zVM
> 6.3/6.4
>
> Sysadmins can LOGON BY to get to the zLinux console if necessary.
>
> How/what do I have to configure so logging onto the 3270 console gets
> me logged into root in a bash shell automatically?

For SLES11, modify /etc/inittab
# Default HMC/3215/3270 console
1:2345:respawn:/sbin/ttyrun ttyS0 /sbin/mingetty --noclear %t dumb

and replace it with something like this:
1:012356:respawn:/bin/bash -i


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit http://wiki.linuxvm.org/
This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, Atos’ liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. On all 
offers and agreements under which Atos Nederland B.V. supplies goods and/or 
services of whatever nature, the Terms of Delivery from Atos Nederland B.V. 
exclusively apply. The Terms of Delivery shall be promptly submitted to you on 
your request.

Reply via email to