Results 1 to 10 of 13
Thread: Removed Log files as root
Enjoy an ad free experience by logging in. Not a member yet? Register.
AFAIK, Its not possible to recover logs now.
You could try recreating the log files e.g.
cd /var/log touch mail mail.err mail.info mail.warn
- 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
AFAIK, log files recreate itself. I could be wrong though.
01-21-2008 #8I thought you could use it to change the time created in the file.
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?
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.