Re: Permission problems?

2003-10-09 14:53:31
On October 9, 2003 at 08:24, Dave Sill wrote:

I'm migrating from 2.5.13 under Tru64-Unix to 2.6.8 under Solaris 8. I
run mhonarc from a script via procmail. The invocation looks like:

  echo `date`: $1 >>archive.log
  mhonarc -spammode -add -quiet -outdir /home/http/ornl/lists/mailing-lists/$
st}/${year}/${month} >>archive.log 2>&1

The problem is that on the new system, the log shows errors, e.g.:

Tue Oct 7 13:29:13 EDT 2003: qmail
ERROR: Unable to create "/home/http/ornl/lists/mailing-lists/qmail/2003/10/db
VoYLx8t": Permission denied

An empty file is left in the archive directory:

de5(_at_)www1$ pwd
de5(_at_)www1$ ls -l
total 32
-rwxr-xr-x   1 de5      w_mlists       0 Oct  7 13:29 db0mRVoYLx8t
-rwxr-xr-x   1 de5      w_mlists       0 Oct  7 13:28 db5dSTbD8Sn8
-rwxr-xr-x   1 de5      w_mlists     473 Oct  7 13:29 maillist.html
-rwxr-xr-x   1 de5      w_mlists    1640 Oct  7 13:28 msg00000.html
-rwxr-xr-x   1 de5      w_mlists    1640 Oct  7 13:29 msg00001.html
-rwxr-xr-x   1 de5      w_mlists     462 Oct  7 13:29 threads.html
de5(_at_)www1$ ls -ld .
drwxr-sr-x   2 de5      w_mlists    4096 Oct  7 13:29 .

And, although the messages are all archived, the indexes only show the
most recent message:

What version of Perl are you using?

The source of the error message is in the file_temp() routing in  The reason for the error is curious since it appears
that the temp file was created, but looking at the source code, it
implies that an attempt to create the temp file exceeded TEMP_MAX_TRIES
(which is set to 10).

Since the error message indicates that MHonArc's own temp file
generation is being done, you are probably running an older version
of Perl since the File::Temp module is not being used.  My guess
is that there is something wrong with your version of perl or you
have some ACL settings that may cause permission problems.

The error also indicates that the .mhonarc.db file is not getting


<Prev in Thread] Current Thread [Next in Thread>