The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Just trying to find out a few things .... Tiramisu UNIX for Dummies Questions & Answers 1 07-03-2008 12:08 PM
Question about several things in C V4D3R High Level Programming 1 09-13-2007 10:56 PM
When things doesn't run into crontab??? nymus7 Shell Programming and Scripting 4 04-24-2006 11:11 AM
how to convert things from csh to sh forevercalz Shell Programming and Scripting 1 10-28-2005 03:46 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Mar 2005
Posts: 59
sendmail.cf goes missing & other things

well, I came in today to a raft of messages that users couldn't email from UNIX (HP-UX B.11.23 U i64)

/etc/mail/sendmail.cf was missing - just GONE from the directory. Other files were there.
mail was successfully sent at 19:48 last night and unsuccessful at 00:10. At least those are times are are sure about.

So, I thought I'd look in the mail.log.
/var/adm/syslog -- both syslog.log and mail.log had been reset to 0 at 22:17 and 22:18 respectively.

No one with root passwd admits to doing anything, nor would they do anything.

what the heck might have happened ... how can I find out if there is anything else ... how can I explain this ... how can I prevent this ... etc.

I have restored /etc/mail/sendmail.cf from a backup and mail is now working.
But nothing of the outbound mail is showing in /var/adm/syslog/mail.log
it is still:
Quote:
var/adm/syslog> ll
total 0
-rw-r--r-- 1 root root 0 Oct 28 10:35 OLDsyslog.log
-rw-rw-rw- 1 root sys 0 Jan 5 22:17 mail.log
-rw-rw-rw- 1 root sys 0 Jan 5 22:18 syslog.log
Sponsored Links
  #2 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Mar 2005
Posts: 59
It looks like (probably) an sftp user/process signed on and dropped a file in the root filesystem that caused it to fill from ~80% to 100%
our monitoring service was alerted and deleted the file - but not before we got a core dropped in / root directory. Definitely something dropped a file there.

Still not clear what made the sendmail.cf file disappear though - the tech that cleaned up the file also trimmed the logs while he was on but nothing about /etc/mail/sendmail.cf

so that is still a mystery to be solved.

The core file has been sent to HP to see what they can make of it.
  #3 (permalink)  
Old 01-06-2009
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 5,214
The file command
Code:
file core
will tell you the name of the app that dropped the core file.
  #4 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Mar 2005
Posts: 59
thanks. We've unfortunately moved it off the server already, but good to know for the future. I can see that the file was owned by root though.
  #5 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Mar 2005
Posts: 59
how can I tell what user accounts might have access to drop files at all in the root directory?
  #6 (permalink)  
Old 01-07-2009
Registered User
 

Join Date: Mar 2005
Posts: 59
just to record the resolution/root cause

OVO (open view monitoring) dropped a core file in the root file system, filling it to 100%
our monitoring company got the 100% alarm and the tech made some room in root - and also looked for files in vg00 that could be deleted and inadvertantly deleted /etc/mail/sendmail.cf

apparently there was also a sendmail.cf-orig and he got them both.
Google The UNIX and Linux Forums
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 04:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66