-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, 21 Dec 2015 19:58:28 -0800
Philip Guenther <guent...@gmail.com> wrote:

> On Sun, Dec 20, 2015 at 6:06 PM, Duncan Patton a Campbell
> <campb...@neotext.ca> wrote:
> > On Sun, 20 Dec 2015 12:37:30 -0800
> > Philip Guenther <guent...@gmail.com> wrote:
> >
> >> On Sat, Dec 19, 2015 at 3:31 PM, Duncan Patton a Campbell
> >> <campb...@neotext.ca> wrote:
> >> > I've a question about last/utmp/wtmp that someone here should be
> >> > able to answer.
> >> >
> >> > At the shell I do
> >> >
> >> > # date
> >> > Sat Dec 19 16:29:07 MST 2015
> >> > # last
> >> >
> >> > wtmp begins Sat Dec 19 16:29 2015
> >> >
> >> > This appears to set the beginning time to "now"
> >> > every time I run the thing.  WTF sets the
> >> > lower bound so as to see back from "now"?
> >> >
> >> > It is not exactly obvious from the man pages how this works.
> >> > I'm sure it's there, I just can't find it.
> >>
> >> Well, you apparently know that the data comes from /var/log/wtmp,
> >> so what's the status of that file?  It should be a normal file of
> >> non-zero length.  If it's a symlink to /dev/null or something bogus
> >> then you need to figure out why and maybe reinstall from scratch.
> >
> > # ls -l /var/log/wtmp
> > - -rw-r--r--  1 root  wheel  0 Dec 19 04:00 /var/log/wtmp
> 
> (Not sure why there's that extra '- ' at the beginning of that.  Did
> your email client quote it?)

Apparently yes.

> 
> So, the file isn't growing.  Why?  Is the filesystem full?  Is /var
> not mounted read-write?
# df
Filesystem      512-blocks      Used     Avail Capacity  Mounted on
/dev/sd2a         49547260   8237420  38832480    18%    /
# mount
/dev/sd2a on / type ffs (local)
# last       

wtmp begins Sat Dec 26 11:55 2015

l /var/log/wtmp
- -rw-r--r--  1 root  wheel  0 Dec 26 04:00 /var/log/wtmp

And the only mention of wtmp in /etc is in newsyslog.conf

newsyslog.conf:/var/log/wtmp                            644  7     *    $W6D4 B

and in mtree/special
mtree/special:wtmp              type=file mode=0644 uname=root gname=wheel

thanks,
Dhu


> 
> 
> >> Also, you failed to include the dmesg or even mention what version
> >> you're running, so maybe we should just go with "you're clearly
> >> running an out of date version and probably screwed up an upgrade
> >> across the time_t size change"...
> >
> > I'm running 5.7  dmesg as follows:
> >
> > OpenBSD 5.7 (GENERIC.MP) #881: Sun Mar  8 11:04:17 MDT 2015
> >     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> Good; not a known problem in that release.  (Hmm, -current might run
> cooler since kettenis enabled some deeper mwait bits on AMD CPUs after
> 5.8 was released, iirc.)
> 
> 
> Philip Guenther
> 


- -- 

http://babayaga.neotext.ca/PublicKeys/Duncan_Patton_a_Campbell_pubkey.txt

Ne obliviscaris, vix ea nostra voco.
iF4EAREIAAYFAlZ+48EACgkQiY6AzzR1lzw6YQD8DhKxw5vH9v4DjX9ff2WrkSSM
lNGloWEJ1r8GImdA4OsA/RVHt/tl66Nl4EJkarVPhuL3v/XDSiuM+X/cLrc60qaR
=V9tn
-----END PGP SIGNATURE-----

Reply via email to