[Bug 536] no access to tty on Linux 2.0

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Apr 6 10:45:16 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=536





------- Additional Comments From dtucker at zip.com.au  2003-04-06 10:45 -------
Also reported by Frank Adelstein (frank at MyCause dot com):

[quote]
Perhaps this is a known problem, but I only found one instance of someone
describing it on the net with no follow-up.  I just installed openssh 
(3.6p1) on a linux system (running an old 2.0.34 kernel) with privilege 
separation disabled and get the following messages in /var/log/messages:

Apr  2 15:48:34 ernestine sshd[6153]: error: ioctl(TIOCSCTTY): Operation not 
permitted
Apr  2 15:48:34 ernestine sshd[6153]: error: open /dev/tty failed - could not 
set controlling tty: Device not configured

The effect is that ^Z's are mostly ignored (but not by vi) and ^C kills
the session, rather than a running program.

After poking around the net and the code a bit, I found that changing line
318 in sshpty.c from:

        if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
to
        if (ioctl(*ttyfd, TIOCSCTTY, 1) < 0)

seems to fix things.  Is this a known bug or something peculiar to my
installation?  Let me know if there is any further information I can 
provide.  Thanks for any input.
[/quote]



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-unix-dev mailing list