Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44356 - Incorrect code in "Code Listing 2: Adding ttyS0 to /etc/securetty"
Summary: Incorrect code in "Code Listing 2: Adding ttyS0 to /etc/securetty"
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 06:18 UTC by Elliot Bailey
Modified: 2004-03-13 10:07 UTC (History)
1 user (show)

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


Attachments
Patch to hb-install-finalise.xml (temp.diff,1007 bytes, patch)
2004-03-12 02:02 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elliot Bailey 2004-03-11 06:18:14 UTC
I found out that this isn't the way to add root access to the console port.

Reproducible: Always
Steps to Reproduce:
1.Following guide
Actual Results:  
Root doesn't not have access when ttyS0 is added to /etc/securetty

Expected Results:  
Given root access to ttyS0

The command should be:

# echo "tts/0" >> /etc/securetty

You would also need to add a line like this to the /etc/inittab:

s0:2345:respawn:/sbin/agetty -h 9600 ttyS0 vt102
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-12 02:02:54 UTC
Created attachment 27235 [details, diff]
Patch to hb-install-finalise.xml

Could a developer confirm these changes? I'm unable to verify.

This means:

* tts/0 is added to /etc/securetty
* s0:2345:respawn:/sbin/agetty -h 9600 ttyS0 vt102 is added to /etc/inittab
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-13 01:43:12 UTC
Adding tts/0 to /etc/securetty is sufficient. I put tts/0 in /etc/securetty and could login as root on my indy's serial console ...
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-13 10:07:46 UTC
Thanks. Committed.