I use Ezmlm to run my mailing list and I'm having problems
with permissions when I have MHonArc automatically post
each message to the archives as they come in.
In my Ezmlm editor file, I have this line:
|mhonarc -add -quiet -outdir /www/outdir/`/usr/bin/date '+%Y-%m'`
What this line does is find the current month and year, and
the message being posted will be added to that directory. For
example, a message posted today would be written to:
/www/outdir/1999-02
The reasoning for this is because I want to separate my
archives by month.
The problem I'm having is when I test this out by creating
the "1999-02" directory and posting my first message to the
list, it will automatically create all of files fine, but the permissions
are wrong on all of the files. Instead of being set to 644, they
end up being set to 600. The ownership on all of the files
seem fine as they are all owned by the user my mailing list
runs under. Every message after that first one will have the
same permissions. If I manually go in and change all of the
permissions to 644, then the next message that gets posted to the
list will be just fine.
Does anyone have any ideas?
Also, does anyone have any ideas as to how I can set this up
to automatically create my "YYYY-MM" directories when the first
message for the month gets posted to the list so I don't have to
go in and create all of them by hand?
Thanks,
Rick McMillin
Systems Administrator
I-Land Internet Services