I installed several "recommended" patches on a SunOS 4.1.3_U1 machine last
week. Now my .procmailrc file is failing, saying it can't write out my
file. I am using procmail as a ftpmail server, among other things, which
will allow a person to send *multiple* send commands in the body of a
message to retrieve multiple files. I do this by first saving the mail
message out with a unique name to a temp area, then I call a script and feed
it the name of the temp file as one of its arguments. I keep getting
the 'Error while writing to...' message, which didn't occur until after
the patches were installed. Has anyone else seen this? I looked in the FAQ
and all of the man pages, *closely* even. I have checked the permissions
of the temp directory and they are fine. Below is a list of the patches
that were installed. Most of them have to do with file permissions, statd,
lockd, etc. As far as I can tell, none of the patches should have interfered
with procmail. The only one I can think of which might have is patch
100103-12, which goes through the OS and changes ownership and permissions
on many of the files and directories in the system.
Patches installed:
100103-12 SunOS 4.1.3_U1: set file permissions to more secure mode
101434-03 SunOS 4.1.3_U1: lpr Jumbo Patch
101436-08 SunOS 4.1.3_U1: patch for mail executable
101440-01 SunOS 4.1.3_U1: security problem: methods to exploit login/su
101508-13 SunOS 4.1.3_U1: Sun4m kernel patch
101558-07 SunOS 4.1.3_U1: international libc jumbo patch
101579-01 SunOS 4.1.3_U1: Security problem with expreserve for Solaris 1.1.1
101587-01 SunOS 4.1.3_U1: security patch for mfree and icmp redirect
101592-06 SunOS 4.1.3_U1: UFS File system Jumbo Patch
101621-04 SunOS 4.1.3_U1: tty patch
101625-02 SunOS 4.1.3_U1: ftp does not prompt for account information
101679-01 SunOS 4.1.3_U1: Breach of security using modload
101784-04 SunOS 4.1.3_U1: rpc.lockd/rpc.statd jumbo patch
102060-01 SunOS 4.1.3_U1: Root access possible via passwd race condition
102177-04 SunOS 4.1.3_U1: NFS Jumbo Patch
101435-02 SunOS 4.1.3_U1: ypserv and ypxfrd fix
Here is the recipe which used to work (may not be the best way, but it worked
when I needed it to):
:0:
* !^FROM_DAEMON
* !^X-Loop: user(_at_)domain(_dot_)com
* !^Subject:.*Re:
{
DATE=`date +'%H%M%S'`
FILE=tmpsend.$DATE
FROM=`formail -rx To:`
:0
|`formail -ds >>/usr/tmp/$FILE`;/usr/local/home/user/script.pl $FROM $FILE
}
Everything works right up to the 'formail -ds' command, which is the part
that keeps on failing.
Thanks for any help,
Larry
--
------------------------------------------------------------------------------
|Larry Glaze | "...Life's a bummer..." |
|System Administrator | --Smashing Pumpkins |
|The Ohio State University | |
|http://rclsgi.eng.ohio-state.edu/~glaze|
glaze(_at_)rclsgi(_dot_)eng(_dot_)ohio-state(_dot_)edu |
------------------------------------------------------------------------------
| All opinions are my own, as they should be. |
------------------------------------------------------------------------------