Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22870 - Missing lines in /etc/inittab and /etc/securetty for serial line console
Summary: Missing lines in /etc/inittab and /etc/securetty for serial line console
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-15 08:49 UTC by Guy Martin (RETIRED)
Modified: 2003-07-17 13:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Martin (RETIRED) gentoo-dev 2003-06-15 08:49:09 UTC
Many hppa users only have a serial console on theire hppa and sometimes they wonder why 
there serial console does not gave them a prompt. 
So I think this could be a great idea to add a commented line for activating the serial console. 
This can also be usefull for others systems of course :) 
 
Add in /etc/inittab : 
#T0:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100 
#T0:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100 
 
Add in /etc/securetty : 
ttyS0 
ttyS1 
ttys/0 
ttys/1 
 
It should not be commented in /etc/securetty since it does not introduce any security risk.
Comment 1 Guy Martin (RETIRED) gentoo-dev 2003-06-16 14:50:03 UTC
I mad a typo when writing last two lines which should be added in securetty. They 
should be : 
 
tts/0 
tts/1 
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-17 13:02:15 UTC
Check the bit in the baselayout ebuild:

------------------------------------

        # Add serial console ...
        case ${ARCH} in
                sparc|mips)
                        cp inittab inittab.orig
                        sed -e 's"# TERMINALS"# SERIAL CONSOLE\nc0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100\n\n# TERMINALS"' \
                                inittab.orig > inittab || die
                        rm -f inittab.orig
                        ;;
        esac
----------------------------------

You need to add hppa there.  I will do this for next release.  The other
change however, should be done by the admin (my opinion).

Anyhow, will be in 1.8.6.9 in a bit.