PPP/Telnet - What tty invoked a telnet session?

PPP/Telnet - What tty invoked a telnet session?

Post by Roland Gerlac » Fri, 07 May 1999 04:00:00




> I have clients that connect via PPP using a single PPP account.  Once there
> connected they invoke a telnet session using a personal/unique account.  The
> problem is - I am trying to find a way that I can trace which TTY is invoking
> which telnet session. Example. If someone logs onto tty3, they invoke the
> PPPATTACH and then can invoke a telnet session.  The "who" table gives me no
> clue to what tty spawned the Telnet session.  Any help would be appreciated.

Ooops, ttys don't "spawn" telnet session.  When you telnet, you
connect over the network (via your PPP connection) and the connect
attempt is picked up by inetd which starts the telnet session.  There
is no direct relationship between the tty the PPP session is on and
the telnet.

You may be able to work it out by examining the IP address of the
remote end of the telnet and then work out which PPP connection has
that address and then determine the tty for that PPP connection.

What are you trying to do?

Cheers,
Roland.
--
Roland Gerlach                ,-_|\           Tell me and I'll forget;
ePOST/OPEN Australia Post    / .au \       show me and I may remember;
Voice: +61 3 92045186        \_,-.x/   involve me and I'll understand.
Fax:   +61 3 92045381             v                  - Chinese Proverb