LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Deleted /var/log/messages, how to create a new one? (http://www.linuxquestions.org/questions/linux-security-4/deleted-var-log-messages-how-to-create-a-new-one-295447/)

chingyenccy 02-27-2005 08:06 AM

Deleted /var/log/messages, how to create a new one?
 
Hi,
I have accidentally deleted the /var/log/messages file and I have created an empty 'messages' file using the vi editor, however all my log files does not go into the the new file that I have created! How can I recreate the /var/log/messages file that works? Do I have to change the mode of the new file? Please help!

--Thanks!--

chingyenccy 02-27-2005 09:22 AM

logrotate -f /etc/logrotate.conf

That solves the problem, advised by Hangdog42..

Capt_Caveman 02-27-2005 10:06 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Original thread:
http://www.linuxquestions.org/questi...hreadid=295441


All times are GMT -5. The time now is 11:55 AM.