HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.
Hajimu UMEMOTO
ume at FreeBSD.org
Thu Jan 14 14:01:34 UTC 2010
Hi,
>>>>> On Wed, 13 Jan 2010 20:42:54 +0100
>>>>> Ed Schouten <ed at 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 at 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 at 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 at 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 at yoshino:~% logout
Connection to yoshino.mahoroba.org closed.
ume at 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 at yoshino:~% w
10:49PM up 27 mins, 0 users, load averages: 0.05, 0.26, 0.38
USER TTY FROM LOGIN@ IDLE WHAT
ume at 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 at mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the freebsd-current
mailing list