Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jul 05, 2005 7:29 pm 
Offline
Junior Member

Joined: Thu May 12, 2005 2:06 pm
Posts: 48
Hi,

Because of a stupid bug in Gentoo that doesn't seem to be fixed (http://bugs.gentoo.org/show_bug.cgi?id=40304) I have lost half of my /var/log files... forever! I need to fix it but...

This are the files that the cron script has chown'd to root:adm and chmod'd to 0640:

auth.log
cron.log
daemon.log
debug
imapd.log
kern.log
lpr.log
mail.err
mail.info
mail.log
mail.warn
messages
ppp.log
syslog
user.log
uucp.log

It seems that for example postfix cannot write to mail.* files, and so on: all of them are 0 bytes long.

If there is anyone using Gentoo in its Linode, could you tell me what user:group and chmod do they have? I don't know where can I look for this information...

Thank you!


Top
   
 Post subject:
PostPosted: Tue Jul 05, 2005 7:49 pm 
Offline
Junior Member

Joined: Thu May 12, 2005 2:06 pm
Posts: 48
Hi,

It seems that some services were broken. I've reboot and some of that files are now written. :oops:

Thank you anyway


Top
   
 Post subject:
PostPosted: Tue Jul 05, 2005 8:10 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Yeah ... Most are owned by root, anyhow. From the Gentoo 2005 template image:

Code:
bash-2.05b# ls -al /var/log/
total 3
drwxr-xr-x   3 root    root    1024 Sep 14  2004 .
drwxr-xr-x  12 root    root    1024 Jun 30  2004 ..
-rw-r--r--   1 root    root       0 Mar 30 18:14 auth.log
-rw-r--r--   1 root    root       0 Mar 30 18:14 daemon.log
-rw-r--r--   1 root    root       0 Mar 30 18:14 debug
-rw-rw----   1 portage portage    0 Mar 30 18:14 emerge.log
-rw-r--r--   1 root    root       0 Sep 14  2004 imapd.log
-rw-r--r--   1 root    root       0 Mar 30 18:14 kern.log
-rw-r--r--   1 root    root       0 Mar 30 18:14 lastlog
-rw-r--r--   1 root    root       0 Sep 14  2004 lpr.log
-rw-r--r--   1 root    root       0 Sep 14  2004 mail.err
-rw-r--r--   1 root    root       0 Sep 14  2004 mail.info
-rw-r--r--   1 root    root       0 Sep 14  2004 mail.log
-rw-r--r--   1 root    root       0 Sep 14  2004 mail.warn
-rw-r--r--   1 root    root       0 Mar 30 18:14 messages
drwxr-xr-x   2 root    root    1024 Sep 14  2004 news
-rw-r--r--   1 root    root       0 Sep 14  2004 ppp.log
-rw-r--r--   1 root    root       0 Mar 30 18:14 syslog
-rw-r--r--   1 root    root       0 Sep 14  2004 user.log
-rw-r--r--   1 root    root       0 Sep 14  2004 uucp.log
-rw-rw-r--   1 root    utmp       0 Mar 30 18:15 wtmp

-Chris


Top
   
PostPosted: Wed Jul 06, 2005 6:51 am 
Offline
Junior Member

Joined: Thu Oct 07, 2004 6:47 pm
Posts: 47
fernandonajer wrote:
Hi,
It seems that for example postfix cannot write to mail.* files, and so on: all of them are 0 bytes long.


Note: postfix doesn't write to files but sends its logs to syslog. You might want to restart syslog (it may have been stopped or the files moved without it being sent a SIGHUP).


Top
   
 Post subject:
PostPosted: Wed Jul 06, 2005 1:26 pm 
Offline
Junior Member

Joined: Thu May 12, 2005 2:06 pm
Posts: 48
Thank you! I was confused because I didn't know what gyver says. It was syslog which was down (why???)

Anyhow, thank you for your help. I've checked my list against caker's and it seems to be ok now.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: dobriain and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group