On 20080226 15:17:24, Tom Evans wrote: > 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.
Hi. As I mentioned in my first email, the issue isn't precisely that a tty isn't allocated, it's that *ksh does extra pedantic checking to discover whether or not it really does have a controlling terminal. The restrictions that exist in jails (eg. not being able to open /dev/tty) cause the shell to believe that it doesn't have a controlling terminal. The shells in base don't do this extra checking and therefore work fine. This is simply an OS specific artifact that the *ksh authors couldn't possibly have forseen! Given that it seems nobody has patched *ksh to work in a jail, I'll try myself. I expect the easiest way will be to add a command line flag that says "I really do have a controlling terminal". Thanks anyway. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

