-   Linux - Security (
-   -   Deleted /var/log/messages, how to create a new one? (

chingyenccy 02-27-2005 08:06 AM

Deleted /var/log/messages, how to create a new one?
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!


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.

Original thread:

All times are GMT -5. The time now is 12:05 PM.