Re: 5.0.6 tcp/ip bootdisk telnetd

From: Bela Lubkin (belal_at_sco.com)
Date: 08/31/03


Date: Sun, 31 Aug 2003 06:42:18 GMT
To: scomsc@xenitec.ca

Kyle Masters wrote:

> I am trying to tweak the 5.0.6 tcp/ip-enabled root/boot disks to allow
> inbound telnet connections. I have managed to get out-bound to work
> fine. I got telnetd -debug to run on port 23, the server answers and
> I get a login prompt (once I copied /bin/login), but every attempt to
> log in gives me the following error: "missing target protected
> password information". It never asks for the password and the
> connection is closed upon entering the username. The /etc/passwd
> file is an exact copy of the one on the system that I created the
> boot/root disks on. I copied /etc/shadow and /tcb/files/auth/r/root
> from the same system, but it does not make a difference.
>
> What other files are necessary to make this work on the 5.0.6
> boot/root set?

I haven't tried this, so this is speculation, not a definite answer. To
go the route you're going, you might need:

  /etc/default/login
  /etc/default/security
  files from /etc/auth (not sure which)
  files from /tcb (not sure which)

You might start by copying all of those, then paring down until you find
the file(s) that are critical.

Alternatively, see http://localhost:457/FEATS/tcb_remove.html, "Security
database file removal". This documents how to operate the system in
"ripped-out" security mode. Read it, but my guess is you can ignore
most of the details as long as you put "TCBFILES=OFF" into
/etc/default/security on your floppy root filesystem.

A third possibility: put /etc/rshd on the floppy root, and use `rcmd
downsystem sh -i` instead of a full login. (`rsh` on non-OSR5 systems.)
This gives you a degraded environment (you don't have a tty, for
instance), but may be sufficient for crash recovery purposes.

>Bela<