Subject: Re: Serial Port Login on 3.1
To: Randy Beaudreault <maccult@pacbell.net>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 03/09/2007 10:25:50
At 15:40 Uhr -0800 8.3.2007, Randy Beaudreault wrote:
>When I try to login and logout via serial console to my newly
>upgraded to 3.1 Quadra 700 I encounter the three following issues:
>
>1)  I can't login as root:
>login: root
>Password:
>Feb 27 12:22:00 GuardianII login: LOGIN root REFUSED ON TTY ttyZ0
>Login incorrect or refused on this terminal.

[...]

># Hardwired lines are marked off, by default, so getty(8)
># is quiet when they don't exist.
>tty00   "/usr/libexec/getty std.9600"   vt220   on secure
>tty01   "/usr/libexec/getty std.9600"   unknown off secure
>tty02   "/usr/libexec/getty std.9600"   unknown off secure
>tty03   "/usr/libexec/getty std.9600"   unknown off secure
>tty04   "/usr/libexec/getty std.9600"   unknown off secure
>tty05   "/usr/libexec/getty std.9600"   unknown off secure
>tty06   "/usr/libexec/getty std.9600"   unknown off secure
>tty07   "/usr/libexec/getty std.9600"   unknown off secure
>
>3)  I get the following message upon logout:
>Mar  8 08:34:00 GuardianII login: pam_sm_close_session(): no utmp
>record for tty
>Z0
>I don't get this one.
>
>Am I doing anything wrong here?  (Besides the obvious of a root login
>remotely.)

No, NetBSD is at fault here.  ;)

The tty0[01] entries above were renamed to ttyZ[01] some time ago. While
there are symlinks in place for compatibility, login apparently compares
the ttys entry with the actual device when it checks whether root may login
there ("secure").

The /etc/ttys change is in -current, but wasn't pulled up to the release
branches.

	hauke


--
"It's never straight up and down"     (DEVO)