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

Bug#3227: login refuses, and then allows, root login on tty?



  Guy>  This line from Dirk's auth.log is illuminating.  Note the last 2
  Guy> characters: Jun 5 16:29:20 miles login: LOGIN root REFUSED ON TTY
  Guy> tty??
  Guy>
  Guy> The ?? means that the call to ttyname(0) returned NULL.  The man page
  Guy> for ttyname() says it can fail if the fd is not connected to a
  Guy> terminal.  I'll have to check libc if there are other ways that it
  Guy> could fail.
  Guy>
  Guy> Which getty execed this login?  Also give me the initab line for this
  Guy> tty.

Plain standard:

edd@miles:~> dpkg -l getty sysvinit | grep ^ii
ii  getty           1.0-4          agetty, an alternative Linux getty.
ii  sysvinit        2.61-2         System-V like init.

edd@miles:~> grep tty /etc/inittab
# /sbin/getty invocations for the runlevels.
# characters of the device (after "tty").
1:2345:respawn:/sbin/getty 9600 tty1
2:23:respawn:/sbin/getty 9600 tty2
# edd 12.09.95 commented out 4 of the 6 getty's
#3:23:respawn:/sbin/getty 9600 tty3
#4:23:respawn:/sbin/getty 9600 tty4
#5:23:respawn:/sbin/getty 9600 tty5
#6:23:respawn:/sbin/getty 9600 tty6

--
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd


Reply to: