Date: 31 Oct 2001 11:21:53 -0930 From: Andrew Reid <andrew.reid@plug.cx> To: Kelvin Ng Chee Hoong <nchee_hoong@pacific.net.sg> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Clean up log files when logout Message-ID: <1004518023.330.35.camel@aviion.alfred.cx> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1004518023.330.35.camel>