From owner-freebsd-questions Tue Oct 1 22:16:43 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA04036 for questions-outgoing; Tue, 1 Oct 1996 22:16:43 -0700 (PDT) Received: from aeffle.Stanford.EDU (sequence.Stanford.EDU [171.65.76.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA04030 for ; Tue, 1 Oct 1996 22:16:41 -0700 (PDT) Received: (from hlew@localhost) by aeffle.Stanford.EDU (8.6.10/8.6.6) id WAA20094; Tue, 1 Oct 1996 22:10:25 -0700 Date: Tue, 1 Oct 1996 22:10:25 -0700 (PDT) From: Howard Lew To: "Mark O'Lear" cc: questions@freebsd.org Subject: Re: a trick for /etc/ttys In-Reply-To: <32513737.7720@Colorado.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 1 Oct 1996, Mark O'Lear wrote: > This sounds like some other process is using the port at > the same time (like another regular getty?) You should only > have one cuaa3/ttyd3 line turned on in your /etc/ttys (one > or the other, not one of each). Can you send the results > (or report the results) of a 'ps -axw | fgrep a3 | fgrep -v fgrep' > and 'ps -axw | fgrep d3 | fgrep -v fgrep'. If no one is using > the modem, you should get one line from the first ps and nothing > from the second. Yes. Only have vgetty running on that line. server: {2} ps -axw | fgrep d3 | fgrep -v fgrep 23934 ?? I 0:00.07 /usr/local/sbin/vgetty ttyd3 server: {3} > > I have included the relevant part of my /etc/ttys (although I am > only using mgetty - I cannot imagine the two are that different > with regards to the locking mechanism), and the output of the > two ps commands: > > /etc/ttys: > # Serial terminals > ttyd0 "/usr/libexec/getty std.9600" unknown off secure > ttyd1 "/usr/libexec/getty std.9600" unknown off secure > ttyd2 "/usr/libexec/getty std.9600" unknown off secure > ttyd3 "/usr/libexec/getty std.9600" unknown off secure > # Modems > cuaa0 "/usr/local/sbin/mgetty -k 1024 -n 1 /dev/cuaa0" > unknown on insecure > cuaa1 "/usr/local/sbin/mgetty -k 1024 -n 1 /dev/cuaa1" > unknown on insecure > cuaa2 "/usr/local/sbin/mgetty -k 1024 -n 1 /dev/cuaa2" > unknown on insecure > cuaa3 "/usr/local/sbin/mgetty -k 1024 -n 1 /dev/cuaa3" > unknown on insecure > I'm not sure what -k 1024 -n 1 means, but here's mine: # # @(#)ttys 5.1 (Berkeley) 4/17/89 # # name getty type status comments # # This entry needed for asking password when init goes to single-user mode # If you want to be asked for password, change "secure" to "insecure" here console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" cons25 on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/X11R6/bin/xdm" xterm on secure # Serial terminals ttyd0 "/usr/libexec/getty std.9600" unknown off secure ttyd1 "/usr/libexec/getty std.9600" unknown off secure ttyd2 "/usr/libexec/getty std.9600" unknown off secure ttyd3 "/usr/local/sbin/vgetty" unknown on insecure # Pseudo terminals ttyp0 none network ttyp1 none network ... > > P.S. Did you mean to leave off the freebsd-questions list in > your CC:? nope... I guess it got dropped by accident. I'll put it back in the cc: list and see if we can get more input on this... > -- > Mark O'Lear \ e-mail: Mark.Olear@Colorado.EDU > University of Colorado \ phone: (303) 492-3798 > Telecomm. Svcs. (CB 313) \ fax: (303) 492-5105 > Boulder, CO 80309 \ >