Subject: Re: Serial Port Login on 3.1
To: Randy Beaudreault <maccult@pacbell.net>
From: Gheorghe Ardelean <ardelean@ww.uni-erlangen.de>
List: port-mac68k
Date: 03/09/2007 11:02:31
Hi,
This is now fix in current (IIRC). I posted a fix some time ago:
http://mail-index.netbsd.org/port-mac68k/2006/05/04/0000.html
Changing ttyE0 to ttyZ0 in /etc/ttys makes the things work also for root.
As Hauke explained sometime in email the problem in your case is that
ttyE0 is a symbolic link to the real device (ttyZ0) and that is why the
root can not login (I think this is also the case of Q700).
I hope this helps.
Regards,
Johny.
On Thu, 8 Mar 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.
> Is this a security feature to console login now?
>
> 2) When I do login with a non-root account I get the following:
> NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:42:59 UTC 2006
>
> Welcome to NetBSD!
>
> tset: terminal type su is unknown
> Terminal type? vt220
> I have the proper terminal type listed in /etc/ttys:
> #
> # $NetBSD: ttys,v 1.17 2004/06/20 21:30:27 christos Exp $
> # from: @(#)ttys 5.1 (Berkeley) 4/17/89
> #
> # name getty type status comments
> #
> # If the console is marked insecure, single-user requires
> # the root password.
> console "/usr/libexec/getty Pc" vt220 off secure
>
> # Define the console that we actually run getty on.
> ttyE0 "/usr/libexec/getty Pc" vt220 off secure
>
> # 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.)
> --
> Randy
>
> OS X - UNIX for the rest of us
> NetBSD - It's Explosive!
> Marten - Prograph for OS X. Yes!
>