[2901] in Kerberos-V5-bugs
pending/569: PATCH: AIX/DUNIX phantom wtmp entries
daemon@ATHENA.MIT.EDU (Larry Schwimmer)
Thu Mar 19 08:37:38 1998
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU,
Larry Schwimmer <schwim@whatmore.Stanford.EDU>
Date: Thu, 19 Mar 1998 05:36:16 -0800 (PST)
From: Larry Schwimmer <schwim@whatmore.Stanford.EDU>
To: krb5-bugs@MIT.EDU
>Number: 569
>Category: pending
>Synopsis: PATCH: AIX/DUNIX phantom wtmp entries
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Thu Mar 19 08:37:00 EST 1998
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
Submitter-Id: net
Originator: Larry Schwimmer
Confidential: no
Synopsis: AIX and DUNIX last do not understand psuedo entries
Severity: non-critical
Priority: low
Category: krb5-appl
Class: sw-bug
Release: 1.0.5
Environment: AIX, Digital UNIX
Description:
krlogind and telnetd call pty_update_utmp with "rlogin" and
"LOGIN" entries, respectively. This call generates a wtmp entry for
these psuedousers. last on AIX and Digital UNIX reports these
entries (as a login with no logout).
I partially understand why the call is made, but I'm not
sure it's really needed. tcpd and syslog provide logging information
about connections, so the wtmp entry seems unnecessary. For most
systems, it is not a problem, but for systems whose last does not
discard them, it is confusing and can be misleading.
Fix:
Either remove the code completely or ifdef it out for
the systems whose last does not understand it.
--- appl/bsd/krlogind.c.orig Wed Mar 18 17:42:26 1998
+++ appl/bsd/krlogind.c Wed Mar 18 17:43:12 1998
@@ -702,9 +702,10 @@
#ifndef NO_UT_PID
{
-
+#if !defined(_AIX) && !defined(__osf__)
pty_update_utmp(PTY_LOGIN_PROCESS, getpid(), "rlogin", line,
""/*host*/, PTY_TTYSLOT_USABLE);
+#endif
}
#endif
--- appl/telnet/telnetd/sys_term.c.orig Fri Feb 6 19:41:47 1998
+++ appl/telnet/telnetd/sys_term.c Wed Mar 18 00:59:24 1998
@@ -1093,9 +1093,11 @@
close(syncpipe[0]);
} else {
-
+
+#if !defined(_AIX) && !defined(__osf__)
pty_update_utmp (PTY_LOGIN_PROCESS, getpid(), "LOGIN", line,
host, PTY_TTYSLOT_USABLE);
+#endif
getptyslave(autologin);
/* Notify our parent we're ready to continue.*/