Anybody have a patch for pdksh derivatives, for jails?
Tom Evans
tevans.uk at googlemail.com
Tue Feb 26 15:17:29 UTC 2008
On Sun, 2008-02-24 at 19:42 +0100, cali clarke wrote:
> Hi.
>
> 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.
>
> 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.
>
> I wondered if anybody had patched their *ksh to workaround
> this problem?
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080226/abe27e36/attachment.pgp
More information about the freebsd-hackers
mailing list