How do I configure passwordless serial console access on CentOS 8?

user189395

This official Red Hat page offers some vague hints.

Since /etc/securetty listed many possible devices so that the practical effect in most cases was to allow by default, this change has only a minor impact. However, if you use a more restrictive configuration, you need to add a line enabling the pam_securetty.so module to the appropriate files in the /etc/pam.d directory, and create a new /etc/securetty file.

It seems odd there is no cleaner way of allowing passwordless serial console access.

This page provides a solution that works well enough but I can't help wondering if there is a simpler way.

telcoM

With the current state of CentOS 8, I don't think so.

The problem is that a traditional Unix login from a serial port involves two components: a getty process to initialize the port settings and prompt for the username, and a login process to prompt for a password, check it and initiate the user's session. The RHEL/CentOS SELinux rules have been written with this in mind.

You could make it simpler to configure automatic logins by replacing the combination of agetty and login by something else that does both jobs, and adjusting the PAM and SELinux configurations to match, but you'll find that to be far more complex than the three simple steps listed in the link you provided.

Configuring an automatic login is a pretty significant action in terms of security, so it generally should be a multi-step procedure so it'll be unlikely to be done by accident. And if you find yourself doing it often, there's nothing to stop you from automating it using a tool of your choice (e.g. just a script, or perhaps something like Ansible).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Allow passwordless root login on the serial console

From Dev

How do I access the $locationProvider to configure it?

From Dev

How do I access a console TTY on a MacBook?

From Dev

How do I install beesu on CentOS 8?

From Dev

How do I access a USB serial port without an entry in /dev?

From Dev

How do I configure network interface and default gateway in CentOS?

From Dev

How do I increase the font size of the CentOS 7 console?

From Dev

How do I configure PuTTY to show non-printing ASCII characters when using a serial connection?

From Dev

How do I configure the location and rotation of the Dropwizard access log?

From Dev

How do I configure my Android emulator to access my localhost?

From Dev

How do I configure the location and rotation of the Dropwizard access log?

From Dev

Installing centos and freebsd with serial console

From Dev

how do I access a BlockingQueue from either Swing or the Console?

From Dev

How do I access nested objects properties in console.table()?

From Dev

How do I grant access /dev/console to an executable?

From Dev

How do I access `status` from this `object` being shown in console?

From Dev

How do I get access to rails session in the console?

From Dev

How do I configure CentOS 6.4 to allow normal users to run startx, without installing Gnome/KDE?

From Dev

How do I configure Ubuntu Server to access a WPA2 Enterprise WiFi Access Point?

From Dev

How do I configure Ubuntu Server to access a WPA2 Enterprise WiFi Access Point?

From Dev

How do I configure log4net consoleappender to write to Console.Err and Console.Out based on Level?

From Dev

Console browser for Centos 8

From Dev

How to access all 8 serial ports on my 8-port serial PCI card

From Dev

How do I configure pybuilder?

From Dev

How do I configure irssi?

From Dev

How do I configure pybuilder?

From Dev

How do I configure irssi?

From Dev

How do I configure swappiness?

From Dev

How do I regression test serial comms?

Related Related

  1. 1

    Allow passwordless root login on the serial console

  2. 2

    How do I access the $locationProvider to configure it?

  3. 3

    How do I access a console TTY on a MacBook?

  4. 4

    How do I install beesu on CentOS 8?

  5. 5

    How do I access a USB serial port without an entry in /dev?

  6. 6

    How do I configure network interface and default gateway in CentOS?

  7. 7

    How do I increase the font size of the CentOS 7 console?

  8. 8

    How do I configure PuTTY to show non-printing ASCII characters when using a serial connection?

  9. 9

    How do I configure the location and rotation of the Dropwizard access log?

  10. 10

    How do I configure my Android emulator to access my localhost?

  11. 11

    How do I configure the location and rotation of the Dropwizard access log?

  12. 12

    Installing centos and freebsd with serial console

  13. 13

    how do I access a BlockingQueue from either Swing or the Console?

  14. 14

    How do I access nested objects properties in console.table()?

  15. 15

    How do I grant access /dev/console to an executable?

  16. 16

    How do I access `status` from this `object` being shown in console?

  17. 17

    How do I get access to rails session in the console?

  18. 18

    How do I configure CentOS 6.4 to allow normal users to run startx, without installing Gnome/KDE?

  19. 19

    How do I configure Ubuntu Server to access a WPA2 Enterprise WiFi Access Point?

  20. 20

    How do I configure Ubuntu Server to access a WPA2 Enterprise WiFi Access Point?

  21. 21

    How do I configure log4net consoleappender to write to Console.Err and Console.Out based on Level?

  22. 22

    Console browser for Centos 8

  23. 23

    How to access all 8 serial ports on my 8-port serial PCI card

  24. 24

    How do I configure pybuilder?

  25. 25

    How do I configure irssi?

  26. 26

    How do I configure pybuilder?

  27. 27

    How do I configure irssi?

  28. 28

    How do I configure swappiness?

  29. 29

    How do I regression test serial comms?

HotTag

Archive