Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2010 23:01:01 +0900
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        Ed Schouten <ed@80386.nl>
Cc:        ports@FreeBSD.org, current@FreeBSD.org
Subject:   Re: HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.
Message-ID:  <yge4omo7plu.wl%ume@mahoroba.org>
In-Reply-To: <20100113194254.GR64905@hoeg.nl>
References:  <20100113194254.GR64905@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Wed, 13 Jan 2010 20:42:54 +0100
>>>>> Ed Schouten <ed@80386.nl> said:

ed> I just made various commits to FreeBSD HEAD to remove our old user
ed> accounting database interface (see utmp(5)) and replace it by the POSIX
ed> standardized utmpx interface (see getutxent(3)). This means we just got
ed> rid of some annoyances that are as old as the FreeBSD project itself:

Thank you for a great job!

ed> - Hostnames were originally restricted to 16 bytes, which is way too
ed>   short for your average hostname generated by your ISP, but also for
ed>   IPv6 addresses, which are at most 32 + 7 = 39 characters.

At last, we can know the host where login from using IPv6.

Unfortunately, w(1) shows no entry at 2nd login.  It seems
logout breaks utx.lastlogin and utx.active.
Any idea?

ume@ameno:~% ssh yoshino.mahoroba.org
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 9.0-CURRENT (YOSHINO) #0: Thu Jan 14 16:03:58 JST 2010

Welcome to FreeBSD!

10:48PM  up 27 mins, 1 user, load averages: 0.07, 0.28, 0.39

ume@yoshino:~% w
10:48PM  up 27 mins, 1 user, load averages: 0.07, 0.28, 0.39
USER       TTY      FROM                      LOGIN@  IDLE WHAT
ume        pts/0    ameno.mahoroba.org       10:48PM     - w
ume@yoshino:~% ll /var/run/utx.active /var/log/utx.l*     
-rw-r--r--  1 root  wheel  197 Jan 14 22:48 /var/log/utx.lastlogin
-rw-r--r--  1 root  wheel   89 Jan 14 22:48 /var/log/utx.log
-rw-r--r--  1 root  wheel  197 Jan 14 22:48 /var/run/utx.active
ume@yoshino:~% logout
Connection to yoshino.mahoroba.org closed.
ume@ameno:~% ssh yoshino.mahoroba.org
Last login: Thu Jan 14 22:48:56 2010 from ameno.mahoroba.org
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 9.0-CURRENT (YOSHINO) #0: Thu Jan 14 16:03:58 JST 2010

Welcome to FreeBSD!

10:49PM  up 27 mins, 0 users, load averages: 0.05, 0.26, 0.38

ume@yoshino:~% w
10:49PM  up 27 mins, 0 users, load averages: 0.05, 0.26, 0.38
USER       TTY      FROM                      LOGIN@  IDLE WHAT
ume@yoshino:~% ll /var/run/utx.active /var/log/utx.l*
-rw-r--r--  1 root  wheel  4294967493 Jan 14 22:49 /var/log/utx.lastlogin
-rw-r--r--  1 root  wheel         201 Jan 14 22:49 /var/log/utx.log
-rw-r--r--  1 root  wheel  4294967493 Jan 14 22:49 /var/run/utx.active


Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge4omo7plu.wl%ume>