*BSD News Article 26605


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!basser.cs.su.oz.au!news.adelaide.edu.au!gateway.dircsa.org.au!apanix!apanix!not-for-mail
From: hart@apanix.apana.org.au (Leigh Hart)
Newsgroups: comp.os.386bsd.questions
Subject: Re: SYSCONS: Root login refused on this term.
Date: 27 Jan 1994 18:56:20 +1030
Organization: APANIX Public Access Unix, Australia, +61-8-373-5485 (3 lines)
Lines: 42
Message-ID: <2i7trc$mtd@olivaw.apanix.apana.org.au>
References: <199401222301.SAA25545@freenet.buffalo.edu>
NNTP-Posting-Host: olivaw.apanix.apana.org.au

ae516@freenet.buffalo.edu (Christopher L. Mikkelson) writes:

>Hello all!
>  I recently tried to login on my FreeBSD 1.0 system as root (from the
>console), but got a "root login refused on this terminal" error.  This
>strikes me as a more than minor inconvenience.  i.e. What if there were
>no other users (besides root) set up, and the user tried to boot a
>syscons kernel.  How do you get around this?  

Change:
#
#	@(#)/etc/ttys	5.1 (Berkeley) 4/17/89
#
# name	getty				type	status		comments
ttyv0	"/usr/libexec/getty Pc"		pc3	on
...
...
...
ttyvb	"/usr/libexec/getty Pc"		pc3	on

To:
#
#	@(#)/etc/ttys	5.1 (Berkeley) 4/17/89
#
# name	getty				type	status		comments
ttyv0	"/usr/libexec/getty Pc"		pc3	on		secure
...
...
...
ttyvb	"/usr/libexec/getty Pc"		pc3	on		secure

You usually do this before rebooting into a kernel that uses different
devices to login via the console.

Cheers

Leigh
-- 
                                 Leigh Hart
                               C/- PO Box 758
                          North Adelaide  SA  5006
 hart@eppie.apana.org.au  hart@apanix.apana.org.au  hart@cleese.apana.org.au