Re: Does anyone still care about BSD ptys?

From: Dominik Kubla (dominik_at_kubla.de)
Date: 02/10/04

  • Next message: Meelis Roos: "Re: 2.6.3-rc1: snd_intel8x0 still too fast"
    Date:	Tue, 10 Feb 2004 12:16:33 +0100
    To: "Richard B. Johnson" <root@chaos.analogic.com>
    
    

    On Mon, Feb 09, 2004 at 01:27:24PM -0500, Richard B. Johnson wrote:
    > On Mon, 9 Feb 2004, Dominik Kubla wrote:
    >
    > > On Mon, Feb 09, 2004 at 09:00:24AM -0500, Richard B. Johnson wrote:
    > > > > On Mon, Feb 09, 2004 at 07:17:27AM +0000, H. Peter Anvin wrote:
    > > > > > Does anyone still care about old-style BSD ptys, i.e. /dev/pty*?
    > > >
    > > > Only people who want to log-in from the network..... Of course
    > > > you could force a re-write of all the stuff like telnet, adding
    > > > another layer of bugs that'll take another N years to find and
    > > > remove.
    > >
    > > What are you talking about? On my system (Debian Sid) there are no BSD
    > > pty's (i removed the device nodes) and everything works without even a
    > > recompile.
    > >
    > > Regards,
    > > Dominik
    >
    >
    > Really? Then you don't have anybody trying to log-in
    > from the network using telnet, then do you?

    Really? How do you diagnose my system without even logging in?

    [kubla@duron] telnet server1
    Trying 192.168.xxx.xxx...
    Connected to server1.intern.kubla.de.
    Escape character is '^]'.
    [SSL - attempting to switch on SSL]
    [SSL - handshake starting]
    [SSL - OK]
    Password:
    Last login: Tue Feb 10 12:03:36 2004 from duron.intern.kubla.de on pts/0
    Linux server1 2.6.0-1-k7 #2 Sun Jan 11 17:06:46 EST 2004 i686 GNU/Linux

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    You have mail.
    [kubla@server1] tty
    /dev/pts/0
    [kubla@server1] ls -l /dev/pts/0
    crw------- 1 kubla tty 136, 0 Feb 10 12:08 /dev/pts/0

    > The BSD virtual terminals go in pairs, /dev/ptyp* /dev/ttyp*
    ...
    > Here, rjohnson is logged in using telnet. The code is so common
    > that there is even some C runtime library support in later
    > C libraries, it's called forkpty(). `man forkpty`. It does a lot
    > of the dirty-work of using BSD virtual terminals.

    Try removing you BSD pty's and most likely you will see that telnetd
    happily uses System V pty's. If not then you should really update your
    telnetd. Both netkit-telnetd and telnetd-ssl, which is derived from it,
    can use System V-ptys since at least 5 years, probably even longer.
    If both BSD and System V pty's are present on the system, the code will use
    BSD. (That's why i removed the BSD pty's in the first place!)

    Regards,
      Dominik

    -- 
    "Conversion, fastidious Goddess, loves blood better than brick, and feasts
    most subtly on the human will."
    -- Virginia Woolf, "Mrs. Dalloway"
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Meelis Roos: "Re: 2.6.3-rc1: snd_intel8x0 still too fast"

    Relevant Pages

    • Weird vi behaviour
      ... I'm currently trying to get 4.3BSD running in simh ... When I use vi with telnet it looks like this: ... In order to make telnet work I had to create some ttyps. ... Jul 12 10:12:49 BSD last message repeated 11 times ...
      (comp.unix.bsd.misc)
    • Re: Disble remote login
      ... Telnet is a part of inetd and most of inetd services you should never ... plus it helps support the BSD ... > Hello, I am a FreeBSD newbie, so please excuse me if I don't use correct ... how to I disable remote login through telnet? ...
      (freebsd-newbies)
    • ifconfig help
      ... I was connected to a Solaris box by telnet, and wanting to find IP ... I ran the same command that I would under my BSD box: ...
      (comp.unix.solaris)
    • Re: SSLServer crashes when non-essl telnet connection is made
      ... correctly for SSL. ... Then dive into doing it in Ruby OpenSSL. ... Well, generally speaking, telnet protocol by default doesn't use SSL; ... basically not supporting SSL certs. ...
      (comp.lang.ruby)
    • Re: ISS Universal SSL Telnet Sever & Gateway
      ... SSL SERVER for Windows. ... I am not sure it uses one D3 licence or none with ... It runs much more faster than Windows telnet ...
      (comp.databases.pick)