bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Failure to log in as root to serial console in bash 5.0; works in bash 4


From: jpbion
Subject: Failure to log in as root to serial console in bash 5.0; works in bash 4.4
Date: Sat, 16 Feb 2019 07:55:02 -0800 (PST)

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux www.jfroot.com 4.20.10 #1 SMP Fri Feb 15 05:19:30 PST 2019 
x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 2
Release Status: release

Description:
        This all works with bash 4.4; just tested it with it, it works fine.
        In bash 5.0, an attempt to login as root on a serial console on my
        machine results in this failure:

          bash: initialize_job_control: no job control in background: Bad file 
descriptor

       ...and ANY keypress results in an 'exit' being printed and the
       connection dropped. Logging in as any other user works fine, and then
       I can 'su' to root, and all works. Again, this works in 4.4. The code
       that prints this (in jobs.c) seems to be new for 5.0.

       /etc/inittab for this console is:
        co:2345:respawn:/sbin/agetty -L 115200 ttyS0 vt100

       /etc/login.defs has this entry:
          CONSOLE /etc/securetty

       /etc/securetty has the entry:
          /dev/ttyS0

       The 'passwd' entry for root specifies a home of '/root' and a shell
       of '/bin/bash'

       

Repeat-By:
        Attempt in as 'root' to the console (at least on my system). Fails with
        bash 5.0; succeeds with bash 4.4.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]