[MAYBE SOLVED] was Can't resolv "sh: can't access tty; job control turned of

Laurent B the_ccm at hotmail.com
Wed Jan 17 22:27:43 UTC 2007


>
>On Wed, Jan 17, 2007 at 09:26:10PM +0100, Laurent B wrote:
> > rm /dev/tty
> > ln -s /dev/pts/0 /dev/tty
>
>That's wrong. I hope you don't use more than one login at the same time,
>as those will get pts/1, pts/2, etc., but /dev/tty will point to the
>wrong one.

yes I'm agree with you, it's a disgusting method and which only work if you 
have one login, ttyS0 and others won't work with this stupid stuff.

>
> > And now it's working, so I don't know what /dev/tty is used for, but 
>seems
> > to be a dynamic link which stands for the current console tou are logged 
>in.
>
>tty stands for the processe's controlling terminal. It isn't a symbolic
>link, on Linux it is a char device, major 5, minor 0.
>
> > So now why /dev/tty does not work ? I think it is a kernel compilation
> > problem, will look for this , but if you have an answer, I'm taking it 
>:)
>
>Because the shell really doesn't have a controlling terminal. Eg:
>
>$ ssh server 'echo hello > /dev/tty'
>bash: /dev/tty: No such device or address
>$ ssh server -t 'echo hello > /dev/tty'
>hello
>
>(The -t option to ssh forces pseudo-tty allocation.)
>
>My uneducated guess would be with the pseudo-tty allocation in busybox's
>inetd, or an inconsistency between the supported methos by the kernel
>and busybox (Unix98 pts vs legacy BSD).
>
>--
>lfr
>0/0

both support are enabled in kernel. (Unix98 and BSD), i tried to compile 
again with no bsd support but same problem.


anyway I went back and deleted /dev/tty symbolink link, and made again a 
mknod c 5 0 for tty,
then I launched dropbear instead of telnet, and it's working perfectly with 
dropbear, I got a tty more preciselly /dev/ttyp0, so maybe it's a problem 
with telnet.

I will try to log onto serial port to see if it's work as there is no 
monitor nor keyboard on this machine

thanks anyway !

_________________________________________________________________
Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/




More information about the busybox mailing list