Results 1 to 10 of 13
I accidentally did "rm -rf /var/logs/*" well I wonder now. Am I screwed and will i never see a log again? Or, well how to fix? Since I kinda want ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-21-2008 #1
- 01-21-2008 #2
AFAIK, Its not possible to recover logs now.
- 01-21-2008 #3
- 01-21-2008 #4
You could try recreating the log files e.g.
cd /var/log touch mail mail.err mail.info mail.warn
- 01-21-2008 #5
- Join Date
- May 2004
- arch linux
Yeah, I think daark.child's recommendation might work, at least for some files. I was thinking that most of the log files would rebuild themselves if deleted.
Have you tried rebooting to see if any would recreate themselves?oz
- 01-21-2008 #6
AFAIK, log files recreate itself. I could be wrong though.
- 01-21-2008 #7
- 01-21-2008 #8I thought you could use it to change the time created in the file.
- 01-22-2008 #9
Well I thought, no problem they will make them selfs again.
But that just didnt happen.. :o
So, I kinda paniced Since a Web.MailServer without logs is kinda a pain. (Esspecialy when you never had setup a Mail server)
Anyhow, how comes that touch can make files? As the function of the tool is to change time?
- 01-22-2008 #10
On Linux systems, the manual for touch does not state the file creation capabilities, but I think the info page does. On BSD systems, the manual clearly states that touch modifies file access times as well as create empty files.