* Roger Rossell wrote on Mon, Feb 11, 2002 at 10:31 +0100:
can I erase /var/log/messages?
As root, you *can* [this does not mean "you should"].
will it log again?
It will continue logging into this (deleted) file. To make syslog create a new file a simple killall -HUP syslogd should be sufficient. But maybe you should check out /etc/logfiles and adjust some values... Well, it's not really security related. oki, Steffen -- Dieses Schreiben wurde maschinell erstellt, es trägt daher weder Unterschrift noch Siegel.
On Sunday 10 February 2002 11:53 pm, Steffen Dettmer wrote:
should be sufficient. But maybe you should check out /etc/logfiles and adjust some values... Well, it's not really security related.
Yes it is. The principal purpose for logging is security. -- _________________________________ John Andersen / Juneau Alaska
On 11.02.2002 10:31:09, wrote "Roger Rossell"
can I erase /var/log/messages? will it log again?
You have to restart syslogd after it killall -HUP syslogd But its an better idea to pack this file to another name/location if you need some audit later :O) man gzip: gzip -c file1 > foo.gz new archive gzip -c file2 >> foo.gz append to archive Michael Appeldorn
participants (4)
-
John Andersen
-
Michael Appeldorn
-
Roger Rossell
-
Steffen Dettmer