Technical article 112062

30 second delay before Password: prompt appears when logging in to OpenServer.

OpenServer 5.0.6

Written · Last revised

Problem

I get delays of about 30 seconds between entering a username and the appearance of the Password: prompt, when logging in to OpenServer. I can also see that a ttys-t temporary file has been left in the /etc/auth/system directory.

The following entries appear in /usr/adm/syslog:

failed to read terminal control database entry can't rewrite terminal control entry cannot obtain database information on this terminal

This problem has been identified in 5.0.6. Although caused by a bug in telnetd(ADMN), once it starts, all logins are affected including the console. There are also unconfirmed reports of the problem in OpenServer 5.0.5, although we believe there are no technical reasons for it to occur on that release.

Solution

The problem is fixed in Release Supplement rs506a. If experienced on a OpenServer 5.0.5 system, the recommended solution would be to upgrade to OpenServer 5.0.6 plus 506a.

If, for some reason, it is not possible to install rs506a, the following script provides a crude workaround. Be sure to note the use of this workaround in a system logbook so that it can be disabled if rs506a is eventually installed.

Create a shell script called /bin/fixttys that contains the following:

# fixttys
sleep=$1
if [ -z "$sleep" ] ; then
        sleep=5         # default to 5 sec intervals
fi
while [ true ]; do
        if [ -f /etc/auth/system/ttys-t ];
        then
                tcbck
        fi
        sleep $sleep
done

Create another script called /etc/rc2.d/S99fixttys that contains these lines:

# S99fixttys
/bin/fixttys 5 &

Finally, run the following commands then reboot the system to start the fixttys script:

chmod 711 /bin/fixttys
chown bin:bin /bin/fixttys
chmod 744 /etc/rc2.d/S99fixttys
chown root:root /etc/rc2.d/S99fixttys
NOTE:     Another common cause of delays when logging in to OpenServer is
          incorrectly configured DNS, where the telnet server is unable to
          perform a reverse DNS lookup on the telnet client (see Technical
          Article 114062 for further details).

The following guide should enable the two cases of delays when logging in to be distinguished.

ttys-t problem characteristics:

- 30 second delay - delay occurs _after_ "login:" prompt, before "Password:" - "terminal control entry" messages in syslog - once the problem starts, it affects all logins, even console - caused by bug in 5.0.6 telnetd - 5.0.6 only, fixed by rs506a

DNS problem characteristics:
- 75 second or greater delay
- delay occurs _before_ "login:" prompt
- no syslog messages
- affects only network logins (rlogin, telnet)
- caused by misconfigured DNS, specifically, reverse name lookup
- after login, `who -mx` may show IP address rather than name of
  machine being connected from

See also

tcbck(ADM), ttys(F)

From the Xinuos technical article database, record 112062. Reproduced with permission. The original is at www.sco.com/ta/112062, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.