[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#3076: utmp problems: telnetd, login: `lowest level shell'



Package: netstd?, login?
Version: 2.03-1, 1.0-2

One of my users reported seeing the message `You must exec login from
the lowest level shell.' when trying to connect to my machine using
telnet.

I was able to reproduce this problem, and obtain a listing of the utmp
file.  The transcript below shows what's going on.  (Port 1557 is a
testing service I set up which simply runs /usr/bin/tty to find the
tty name that is being used.)

I was able to cure the problem by starting an xterm and immediately
killing it; this removed the dud entry.

It seems to me that login or telnet or something should clean up stale
entries they find in the file.

Ian.

-chiark:~> telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Debian GNU/Linux 0.93
Copyright (C) 1994, 1995 Debian Association, Inc. and others
You must exec login from the lowest level shell.
Connection closed by foreign host.
-chiark:~> telnet localhost 1557
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Debian GNU/Linux 0.93
Copyright (C) 1994, 1995 Debian Association, Inc. and others
/dev/ttyq0
Connection closed by foreign host.
-chiark:~> ~/junk/utdump.pl </etc/utmp
RUN_LVL    13619 ~~ ~            31a12f76 runlevel                  0.0.0.0
LOGIN_PROC 19209 1  tty1         31a12f7e LOGIN                     0.0.0.0
LOGIN_PROC 20227 2  tty2         31a141e9 LOGIN                     0.0.0.0
LOGIN_PROC 19210 3  tty3         31a12f7e LOGIN                     0.0.0.0
LOGIN_PROC 19211 4  tty4         31a12f7e LOGIN                     0.0.0.0
LOGIN_PROC 19212 5  tty5         31a12f7f LOGIN                     0.0.0.0
INIT_PROC  19213 x7              31a12f7d                           0.0.0.0
INIT_PROC  21562 cp              31a159b7                           0.0.0.0
INIT_PROC  19214 sd              31a12f7d                           0.0.0.0
LOGIN_PROC 19215 c1 ttyc1        31a12f7e LOGIN                     0.0.0.0
LOGIN_PROC 28629 c2 ttyc2        31a1d7ed                           0.0.0.0
LOGIN_PROC 28628 c3 ttyc3        31a1d7ea                           0.0.0.0
LOGIN_PROC 19217 a1 ttya1        31a12f7f                           0.0.0.0
INIT_PROC  19218 mc              31a12f7d                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
USER_PROC  23805 p1 ttyp1        31a1810b richard  muskogee.elmail. 193.112.20.45
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
NULL           0                 00000000                           0.0.0.0
USER_PROC  24307 p2 ttyp2        31a18754 Szenda   janus.csi.cam.ac 131.111.12.21
USER_PROC  25173 p3 ttyp3        31a19885 matthew  agaric.atml.co.u 193.130.79.5
USER_PROC  30429 p4 ttyp4        31a1f0b7 ian      :0.0             208.102.0.64
USER_PROC  28623 p5 ttyp5        31a1d7e8 ian      :0.0             208.102.0.64
USER_PROC  29146 p6 ttyp6        31a1dd19 ian      :0.0             208.102.0.64
NULL           0                 00000000                           0.0.0.0
USER_PROC  28655 p7 ttyp7        31a1d805 ian      :0.0             208.102.0.64
USER_PROC  29484 p8 ttyp8        31a1e081 root     :0.0             208.102.0.64
USER_PROC  29839 p9 ttyp9        31a1e71e root     :0.0             208.102.0.64
USER_PROC  29889 pa ttypa        31a1e7dc ian      :0.0             208.102.0.64
USER_PROC  30344 pb ttypb        31a1ef9b eci1000  zenda.chu.cam.ac 131.111.131.173
USER_PROC  30161 pc ttypc        31a1ec8e dps1001  blackbird.sel.ca 131.111.129.34
USER_PROC  30243 pd ttypd        31a1ee17 ian      :0.0             208.102.0.64
USER_PROC  30247 pe ttype        31a1ee19 ijackson localhost        127.0.0.1
USER_PROC  30330 pf ttypf        31a1ef7d                           0.0.0.0
USER_PROC  30331 q0 ttyq0        31a1ef85                           0.0.0.0
-chiark:~> who
richard  ttyp1    May 21 09:38 (muskogee.elmail.)
Szenda   ttyp2    May 21 10:05 (janus.csi.cam.ac)
matthew  ttyp3    May 21 11:18 (agaric.atml.co.u)
ian      ttyp4    May 21 17:35 (:0.0)
ian      ttyp5    May 21 15:49 (:0.0)
ian      ttyp6    May 21 16:11 (:0.0)
ian      ttyp7    May 21 15:49 (:0.0)
root     ttyp8    May 21 16:25 (:0.0)
root     ttyp9    May 21 16:54 (:0.0)
ian      ttypa    May 21 16:57 (:0.0)
eci1000  ttypb    May 21 17:30 (zenda.chu.cam.ac)
dps1001  ttypc    May 21 17:17 (blackbird.sel.ca)
ian      ttypd    May 21 17:23 (:0.0)
ijackson ttype    May 21 17:23 (localhost)
-chiark:~> dpkg -l netstd login
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name            Version        Description
+++-===============-==============-============================================
ii  netstd          2.03-1         Networking binaries and daemons for Linux
ii  login           1.0-2          sign on to the system
-chiark:~>


Reply to: