*BSD News Article 27107


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!paladin.american.edu!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!usenet.coe.montana.edu!bsd.coe.montana.edu!nate
From: nate@bsd.coe.montana.edu (Nate Williams)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD: /var/log/lastlog ?
Date: 11 Feb 1994 11:08:58 GMT
Organization: Montana State University - Bozeman MT
Lines: 26
Message-ID: <2jfp0a$aop@pdq.coe.montana.edu>
References: <CL0q2s.G6@jester.gun.de>
NNTP-Posting-Host: bsd.coe.montana.edu

In article <CL0q2s.G6@jester.gun.de>,
Michael Gerhards <michael@jester.GUN.de> wrote:
>
>the file '/var/log/lastlog' is growing every day and no cron-job tries
>to truncate it. I even don't knwo what to do with that file. 

That contains the information on who logged in and when.

If that information isn't important than you can delete it, or add a
line to cron that does a 'cp /dev/null /var/log/lastlog'

(copying /dev/null on top of it preserves the ownerships and such)

>last -f /var/log/lastlog gives no information and the manpage said
>nothing important. 

Try running last and see what happens, since last worked fine under my
FreeBSD 1.0.2 box.


Nate
-- 
nate@bsd.coe.montana.edu     |  FreeBSD core member and all around tech
nate@cs.montana.edu          |  weenie.
work #: (406) 994-4836       |  Graduating May '94 with a BS in EE 
home #: (406) 586-0579       |  - looking for work in CS/EE field.