Date: Tue, 26 Feb 2008 15:17:24 +0000 From: Tom Evans <tevans.uk@googlemail.com> To: cali clarke <xorquewasp@googlemail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Anybody have a patch for pdksh derivatives, for jails? Message-ID: <1204039044.2126.121.camel@localhost> In-Reply-To: <5a08be760802241042x2cd93d63of5787a744e745fe5@mail.gmail.com> References: <5a08be760802241042x2cd93d63of5787a744e745fe5@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-eBeptl1kAAvBW3kBvHaW Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2008-02-24 at 19:42 +0100, cali clarke wrote: > Hi. >=20 > pdksh and derivatives (openbsd ksh, mirbsd mksh etc) all have > the same "bug" with regards to jails. On all of my systems, trying > to start *ksh in a jail results in a message that /dev/tty could > not be opened (device busy) and that the shell will not have > job control. For some reason, this makes pretty much any > curses or screen editor fail to run. >=20 > Note that also, this problem does NOT occur if you use ssh > to enter the jail as I believe ssh handles tty allocation in > advance. >=20 > I wondered if anybody had patched their *ksh to workaround > this problem? >=20 > I've had a look at the sources myself and... ugh. The insides > of a unix shell are not something I particularly want to spend > much time examining... Running something like 'jexec 1 /bin/sh' won't allow you to allocate a tty. If instead you enable sshd inside the jail, and ssh into the jail, sshd will allocate you a tty, and everything will work normally. HTH --=-eBeptl1kAAvBW3kBvHaW Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHxC2BlcRvFfyds/cRAqgnAJ4lIDQGbxMN2eG58bR7mYA8F0WbYQCghwCK 0G7CqZ4VyPoqJLfxrEoYS3w= =FLJ0 -----END PGP SIGNATURE----- --=-eBeptl1kAAvBW3kBvHaW--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1204039044.2126.121.camel>