From: Dominik Kubla <dominik@kubla.de>
To: "Richard B. Johnson" <root@chaos.analogic.com>
Cc: Dominik Kubla <dominik@kubla.de>,
Nick Craig-Wood <ncw1@axis.demon.co.uk>,
Jamie Lokier <jamie@shareable.org>,
linux-kernel@vger.kernel.org
Subject: Re: Does anyone still care about BSD ptys?
Date: Tue, 10 Feb 2004 12:16:33 +0100 [thread overview]
Message-ID: <20040210111632.GA1229@intern.kubla.de> (raw)
In-Reply-To: <Pine.LNX.4.53.0402091327020.9986@chaos>
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"
next prev parent reply other threads:[~2004-02-10 11:16 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-09 7:17 H. Peter Anvin
2004-02-09 7:21 ` David Weinehall
2004-02-09 7:29 ` H. Peter Anvin
2004-02-09 8:12 ` Ricky Beam
2004-02-09 8:19 ` H. Peter Anvin
2004-02-09 8:59 ` Miquel van Smoorenburg
2004-02-09 10:09 ` viro
2004-02-09 10:47 ` Miquel van Smoorenburg
2004-02-10 1:33 ` bill davidsen
2004-02-10 2:07 ` H. Peter Anvin
2004-02-09 18:06 ` Olaf Hering
2004-02-09 9:29 ` Nick Craig-Wood
2004-02-09 12:47 ` Jamie Lokier
2004-02-09 13:40 ` Nick Craig-Wood
2004-02-09 14:00 ` Richard B. Johnson
2004-02-09 17:51 ` Dominik Kubla
2004-02-09 18:27 ` Richard B. Johnson
2004-02-09 20:59 ` Athanasius
2004-02-10 11:16 ` Dominik Kubla [this message]
2004-02-10 17:19 ` H. Peter Anvin
2004-02-10 0:47 ` Karl Tatgenhorst
2004-02-10 0:52 ` H. Peter Anvin
2004-02-10 1:35 ` Karl Tatgenhorst
2004-02-09 13:49 Albert Cahalan
2004-02-09 17:14 ` H. Peter Anvin
2004-02-09 17:18 ` Albert Cahalan
2004-02-09 20:32 ` Andries Brouwer
2004-02-10 11:40 ` Dominik Kubla
[not found] <c07c67$vrs$1@terminus.zytor.com.suse.lists.linux.kernel>
[not found] ` <c07i5r$ctq$1@news.cistron.nl.suse.lists.linux.kernel>
[not found] ` <20040209100940.GF21151@parcelfarce.linux.theplanet.co.uk.suse.lists.linux.kernel>
[not found] ` <20040209104729.GA19401@traveler.cistron.net.suse.lists.linux.kernel>
2004-02-09 14:45 ` Andi Kleen
2004-02-09 17:23 ` H. Peter Anvin
2004-02-09 16:57 Joerg Pommnitz
2004-02-10 17:23 ` H. Peter Anvin
[not found] <1ne1M-1Oc-1@gated-at.bofh.it>
2004-02-10 19:47 ` Bill Davidsen
2004-02-10 19:51 ` Bill Davidsen
2004-02-10 21:52 ` Theodore Ts'o
2004-02-10 22:02 ` H. Peter Anvin
2004-02-11 5:31 ` Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040210111632.GA1229@intern.kubla.de \
--to=dominik@kubla.de \
--cc=jamie@shareable.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ncw1@axis.demon.co.uk \
--cc=root@chaos.analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®