From owner-freebsd-hackers Tue Feb 13 0:15:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from security.za.net (security.za.net [196.2.146.22]) by hub.freebsd.org (Postfix) with ESMTP id 42BD037B503 for ; Tue, 13 Feb 2001 00:15:25 -0800 (PST) Received: from localhost (lists@localhost) by security.za.net (8.9.3/8.9.3) with ESMTP id KAA41251; Tue, 13 Feb 2001 10:15:22 +0200 (SAST) (envelope-from lists@security.za.net) Date: Tue, 13 Feb 2001 10:15:21 +0200 (SAST) From: Lists Account To: Neil Blakey-Milner Cc: hackers@freebsd.org Subject: Re: Jail Pseudo Terminals In-Reply-To: <20010213085322.A38024@rapier.smartspace.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Interesting things Ive found with this, thought someone on the list might eventually have a similar problem to what I had, so here is the fix: (Interestingly enough this was _NOT_ nessasary under jail) In screen's config.h the following exists: /* * If your system has the new format /etc/ttys (like 4.3 BSD) and the * getttyent(3) library functions, define GETTTYENT. */ #define GETTTYENT 1 if you change that to #define GETTTYENT 0 (I.E you undefine the option) it works 100% and will give you all your new terminals. As a matter of interest, if anyone here can explain to me why this fixed my problem, or perhaps let me know if there is a problem with getttyent() under jail it would be much appreciated. Thanks Andrew Alston On Tue, 13 Feb 2001, Neil Blakey-Milner wrote: > On Tue 2001-02-13 (07:09), Lists Account wrote: > > Ok this is getting a bit strange. Interestingly enough ssh works 100% > > with my method of tty creation, having created (from outside the > > jail) ttyp32 - ttyp100 (with the minor/major numbers set as 5,XX where XX > > is ttypXX), and a mknod type of c, ssh allocates ttys fine, however screen > > still tells me there are no ttys available? > > > > Any ideas? > > Recompile screen with the extra devices present - it uses some really > interesting system to work out what devices to use, and it will limit > you to ttyp*, and not tty{q,r,s,P,Q,R,S}*, if the latter aren't > present. > > Neil > -- > Neil Blakey-Milner > nbm@mithrandr.moria.org > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message