Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 1997 01:42:27 -0600 (CST)
From:      Zach Heilig <zach@blizzard.gaffaneys.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/3173: utmp and wtmp programs out of sync.
Message-ID:  <199704020742.BAA02459@murkwood.gaffaneys.com>
Resent-Message-ID: <199704020750.XAA13347@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3173
>Category:       bin
>Synopsis:       utmp and wtmp programs out of sync.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr  1 23:50:01 PST 1997
>Last-Modified:
>Originator:     Zach Heilig
>Organization:
>Release:        FreeBSD 2.2-STABLE i386
>Environment:

I cvsup'ed the tag RELENG_2_2 on April 1, and built it.  I noticed this
problem from the update I got on March 29, so I tried again before
complaining.

	

>Description:

login writes utmp and wtmp records that 'last' can understand, but
'who', 'w', 'finger', and 'uptime' do not understand.  xterm writes
utmp and wtmp records that 'who', 'w', 'finger', and 'uptime' can
use, but not 'last'.  I'm sure there are more programs that muck around
with utmp/wtmp, but these are the ones I thought to check.

Script started on Wed Apr  2 01:14:58 1997
$ who
zach     ttyp1   Apr  2 01:12	(:0.0)
zach     ttyp2   Apr  2 01:14	(:0.0)
$ w
 1:15AM  up 3 mins, 2 users, load averages: 0.44, 0.21, 0.08
USER     TTY FROM              LOGIN@  IDLE WHAT
zach     p1  :0.0              1:12AM     - /usr/local/bin/jove /tmp//p232
zach     p2  :0.0              1:14AM     - script
$ finger
Login    Name                 TTY  Idle  Login Time   Office     Office Phone
zach     Zach Heilig          p1         Wed    01:12
zach     Zach Heilig          p2         Wed    01:14
$ uptime
 1:15AM  up 3 mins, 2 users, load averages: 0.45, 0.22, 0.09
$ last
reboot    ~                         Wed Apr  2 01:12 
shutdown  ~                         Wed Apr  2 01:10 

wtmp begins Wed Apr  2 01:10 
$ 
Script done on Wed Apr  2 01:15:27 1997

Note the logins on the console do not show up (and if I log too many in,
I get garbage in the 'who' list).

	

>How-To-Repeat:

	

>Fix:

	

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704020742.BAA02459>