[Bug 120] sshd fails pty chown() when run as non-root userid

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Feb 19 20:37:20 EST 2002


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





------- Additional Comments From idallen at freenet.carleton.ca  2002-02-19 20:37 -------
I'm not a pty expert.  I don't think you can "snoop" characters from a pty
without preventing them from going to the original application.  If the pty
is opened O_EXCL, I think that locks out anyone else.  (Actually, given
the documentation below, it seems that only one process can open the
control half of the pty even without O_EXCL.)  Certainly many 
unpriv applications manage to use ptys without being root.  I just haven't
programmed that in a decade or so, so I don't know the current methodology.



More information about the openssh-unix-dev mailing list