From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 5BF392F00A for ; Thu, 4 Jan 2001 17:08:50 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f04M8oG07690 for axp-list@listman.redhat.com; Thu, 4 Jan 2001 17:08:50 -0500 Received: from asimov.lib.uaa.alaska.edu (asimov.uaa.alaska.edu [137.229.112.4]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f04M8nD07682 for ; Thu, 4 Jan 2001 17:08:49 -0500 Received: by asimov.lib.uaa.alaska.edu (Postfix, from userid 500) id 746DC3005; Thu, 4 Jan 2001 13:08:48 -0900 (AKST) Received: from localhost (localhost [127.0.0.1]) by asimov.lib.uaa.alaska.edu (Postfix) with ESMTP id 70A6C1010 for ; Thu, 4 Jan 2001 13:08:48 -0900 (AKST) Date: Thu, 4 Jan 2001 13:08:48 -0900 (AKST) From: Mike Tibor To: axp-list@redhat.com Subject: Re: How to clean lastlog In-Reply-To: <200101041839.f04IdF913801@dymwsm09.mailwatch.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors On Thu, 4 Jan 2001, Mohan wrote: > Greetings, > Is there a utility that will clean the "/var/log/lastlog" file? > It seems to get huge over time? Does such a beast exist? Files like that need to be rotated. "Cleaning" is usually not a good idea (assuming you mean either truncating, or deleting and then recreating it). An easy fix might be to checkout /etc/logrotate.conf (assuming Red Hat) and create an entry similar to the one for wtmp. Mike -- Mike Tibor Univ. of Alaska Anchorage (907) 786-1001 voice Network Technician Consortium Library (907) 786-6050 fax tibor@lib.uaa.alaska.edu http://www.lib.uaa.alaska.edu/~tibor/ http://www.lib.uaa.alaska.edu/~tibor/pgpkey for PGP public key