From owner-freebsd-questions Wed Oct 31 13:51:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from keetoo.alfred.cx (keetoo.alfred.cx [150.101.93.135]) by hub.freebsd.org (Postfix) with ESMTP id AD7A737B408 for ; Wed, 31 Oct 2001 13:51:16 -0800 (PST) Received: from aviion (unknown [150.101.93.190]) by keetoo.alfred.cx (Postfix) with ESMTP id 12056268; Thu, 1 Nov 2001 07:25:04 +1030 (CST) Subject: Re: Clean up log files when logout From: Andrew Reid To: Kelvin Ng Chee Hoong Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <5.1.0.14.0.20011031103133.00a44760@po.pacific.net.sg> References: <5.1.0.14.0.20011031103133.00a44760@po.pacific.net.sg> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1004518023.330.35.camel@aviion.alfred.cx> Mime-Version: 1.0 X-Mailer: Evolution/0.15 (Preview Release) Date: 31 Oct 2001 11:21:53 -0930 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2001-10-31 at 14:48, Kelvin Ng Chee Hoong wrote: > How do I force the system to clean up those unwanted log file when I > logout the system from my normal user login account ? To my understanding , > only root or wheel group users are able to remove all log files from > /var/log . As such , I have no problem to auto clean up the log by writing > cp /dev/null /var/log/xxx.log in .bash_logout in root directory . newsyslog(8) may be more appropriate than completely obliterating the logfile. Read the man page and see what you think. - andrew -- void signature(){ cout << "Andrew Reid -- andrew.reid@plug.cx" << endl; cout << "Cell: +61 401 946 813" << endl; cout << "Quidquid latine dictum sit, altum viditur" << endl; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message