The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Files created in last 24 hours jayaramanit Shell Programming and Scripting 1 09-08-2007 04:34 AM
Files created by particular user Anshu UNIX for Dummies Questions & Answers 2 06-13-2006 08:12 AM
How safe is it to remove files(/var/spool/mail)? larcom61 UNIX for Dummies Questions & Answers 2 12-02-2005 01:48 AM
files created within last 10 mins frustrated1 UNIX for Dummies Questions & Answers 5 08-03-2005 10:09 AM
Two Files Created For Every One? Atama UNIX for Dummies Questions & Answers 1 04-12-2002 04:44 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-27-2006
TeaMaker TeaMaker is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 1
Files still being created in /var/spool/mmdf/lock/home

Hi all

I need help finding a process that is continuing to create files in the above area. There are three sub folder titled addr q.local and msg . I have already found a process called mmdf running and have used the kill command to stop this from running. I have also looked for sendmail or qmail but neither are running.

These files continue to be created and all start with msg and then have very obscure names after the dot. The system in question is also running slow which I can only assume is caused by the same process that it doing this.

The O/S is Sco Unix Release 5. Any help would be appreciated.
  #2 (permalink)  
Old 03-27-2006
reddymails reddymails is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 25
Hi,
One approach i can think of is to first list the process ids
1. ps -eaf | tr -s " " | cut -f 1 -d " " > mytemppid.txt
2. sed '1d' mytemppid.txt > mypid.txt //Deleting first line teh header

Now for each process id see what files it has opened using
4. /usr/proc/bin/pfiles <pid>
Where pid is the process-id of the process.
It lists the inode numbers of all the files, opened
by that process.

Since its list inode number you need to know the inode number fo your file .
ls -li gives inode number for your file.

Hope this helps.
Regs,
Reddy
  #3 (permalink)  
Old 03-27-2006
casioman casioman is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 10
On running ps -eaf | tr -s " " | cut -f 1 -d " " > pidlist I get an empty file, is this because the ps command has something different for SCO? I know that running ps -ef would work but what does the a parameter do?
  #4 (permalink)  
Old 03-27-2006
matrixmadhan matrixmadhan is online now Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,951
Quote:
ps -eaf | tr -s " " | cut -f 1 -d " " > pidlist
this should probably give you some listing,
eccentric that you dont get any output
atleast you can try this,
try executing the commands individually and you can find the point

besides,
-a option would eliminate listing of session leaders and process that are not connected to the terminal
  #5 (permalink)  
Old 03-27-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
mmdf is the SCO mail daemon - the files being created are probably email to be sent. If it's like Sendmail, the mail will still be running even though you killed the mmdf process. This means killing the process doesn't stop email from being created and put into the queue to be sent - it just means you can't receive mail on that server (again, assuming MMD works like Sendmail).

Check what type of files are being put into the directories - file * should list them. If they are type ascii, cat a couple of them. You will probably find they are emails. Check to see if any of the files seem to be spam. You may not have your mmdf set up properly and could be a relay for a spammer.

Killing off the mmdf probably didn't do a thing for you. And if the system is slow (and email isn't going out), then you probably have a problem with DNS (again, this is assuming that mmdf works like Sendmail) OR with someone using your system as a mail relay.

mmdf relay
MMDF overview

Quote from MMDF overview:
Quote:
After parsing the database and determining what channel the message needs to be sent through, the message is place in the appropriate queue directory. These are located in /usr/spool/mmdf/lock/home. There is one directory of the form q.<channel> for each <channel> configured. In addition, there are two other directories here: msg and addr.

The files in q.<channel> are linked to the files in addr and contain administrative information about the message like the sender, recipient and the queue. At first, it may seem odd to have duplicate files, like this. However, this makes sense when you consider the different delivery modes, or "priorities" you can configure MMDF for.
  #6 (permalink)  
Old 03-27-2006
casioman casioman is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 10
Quote:
Originally Posted by RTM
mmdf is the SCO mail daemon - the files being created are probably email to be sent. If it's like Sendmail, the mail will still be running even though you killed the mmdf process. This means killing the process doesn't stop email from being created and put into the queue to be sent - it just means you can't receive mail on that server (again, assuming MMD works like Sendmail).

Check what type of files are being put into the directories - file * should list them. If they are type ascii, cat a couple of them. You will probably find they are emails. Check to see if any of the files seem to be spam. You may not have your mmdf set up properly and could be a relay for a spammer.

Killing off the mmdf probably didn't do a thing for you. And if the system is slow (and email isn't going out), then you probably have a problem with DNS (again, this is assuming that mmdf works like Sendmail) OR with someone using your system as a mail relay.

mmdf relay
MMDF overview

Quote from MMDF overview:
The files in these folder start with msg. followed by very unusal characters including ASCII line graphics . I will however attempt to view one of these files and thanks for the input on this. The strange part is that this server is not used for emailing so these messages must aimed at the admin?
Closed Thread

Bookmarks

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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