bugzilla-daemon at mindrot.org
2003-Apr-05 19:23 UTC
[Bug 536] no access to tty on Linux 2.0
http://bugzilla.mindrot.org/show_bug.cgi?id=536 Summary: no access to tty on Linux 2.0 Product: Portable OpenSSH Version: 3.6p1 Platform: ix86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: jfeise at ics.uci.edu On Linux kernel 2.0.36, upgraded from OpenSSH 3.5p1 to 3.6p1, now get the following error when I connect to the machine: Warning: no access to tty (Inappropriate ioctl for device). Thus no job control in this shell. This only happens for users with csh or tcsh as default shell. tcsh is the latest version, 6.12.00. If I run sshd -d, the error does not show up. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Apr-06 00:40 UTC
[Bug 536] no access to tty on Linux 2.0
http://bugzilla.mindrot.org/show_bug.cgi?id=536 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From dtucker at zip.com.au 2003-04-06 10:40 ------- This is probably a variant of the setsid/controlling tty wierdness that Solaris had (bug #245). Try adding "#define STREAMS_PUSH_ACQUIRES_CTTY 1" to config.h and recompiling. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Apr-06 00:45 UTC
[Bug 536] no access to tty on Linux 2.0
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.
bugzilla-daemon at mindrot.org
2003-Apr-06 01:25 UTC
[Bug 536] no access to tty on Linux 2.0
http://bugzilla.mindrot.org/show_bug.cgi?id=536 jfeise at ics.uci.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Additional Comments From jfeise at ics.uci.edu 2003-04-06 11:25 ------- Adding the STREAMS_PUSH_ACQUIRES_CTTY define works. Thanks for the help. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Apr-06 01:42 UTC
[Bug 536] no access to tty on Linux 2.0
http://bugzilla.mindrot.org/show_bug.cgi?id=536 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Additional Comments From dtucker at zip.com.au 2003-04-06 11:42 ------- Don't close the bug yet, we still need to fix the source. I don't think it's exactly the same as Solaris but a different problem with the same symptoms. I don't have a Linux 2.0 box handy to go digging into the root cause. Any volunteers, or do we rename STREAMS_PUSH_ACQUIRES_CTTY to something more generic and define it for Linux 2.0? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Apr-09 04:32 UTC
[Bug 536] no access to tty on Linux 2.0
http://bugzilla.mindrot.org/show_bug.cgi?id=536 stuge-openssh-unix-dev at cdy.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stuge-openssh-unix- | |dev at cdy.org ------- Additional Comments From stuge-openssh-unix-dev at cdy.org 2003-04-09 14:32 ------- *** Bug 540 has been marked as a duplicate of this bug. *** ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.