I normally read majordomo list mail from my home account and respond using my work account. I have not seen any new messages at home since last Saturday. In either case you are treading into unexplored territory for me. The only thing that changed in archive2.pl between 1997 (v.1.94.4) and 2000 (v.194.5) is this diff;
186a187
> chmod 0664, "$opt_f$suffix";
I have never run the makeindex.pl before, but I just ran it (without the wrapper) as the root user, and it appears to have created TOPIC and CONTENTS files in my archive directory. The files were created uid.gid root.root (the user I executed makeindex.pl as) though and 644, not 664 like in archive2.pl above. Using wrapper, the files are properly created owner.group majordomo.majordomo.
>From reading the comments in makeindex.pl itself, the only switch or option to the program/script is the name of the archive directory. If you are getting insecure usage, it is probably because you are not running makeindex.pl from the majordomo $HOME directory. Wrapper will not use subdirectories, even if they are in the $HOME directory.
makeindex.pl does not "need" wrapper. You could just cron it by majordomo.
19 3 * * * /usr/lib/majordomo/Tools/makeindex.pl /var/lib/majordomo/archives
If the majordomo user is the one running the tool, the files will also be properly owned by majordomo.
Dan Liston
Bill Polhemus wrote:
>
> Hi, Dan. I never got any response from anyone on my question, below. Would you happen to know the answer?
>
> Thanks.
>
> -------- Original Message --------
> Subject: Running Perl Scripts Under "Wrapper"?
> Date: Sat, 17 Jun 2000 16:03:51 -0500
> From: Bill Polhemus <bpolhem@swbell.net>
> To: Dan Liston <dliston@netscape.com>
> CC: majordomo-users@GreatCircle.COM
> References: <20000616205642.A8069@ision.net> <394B1FCC.C5732C41@netscape.com>
>
> Well, I think that I got the "archive2.pl" thing under control. I simply had no idea how large the files were gonna be until I
> checked and found that indeed, the script WAS correctly parsing the "Netscape folder" into files by month.
>
> But NOW I have another question:
>
> I'm assuming that by running archive2.pl under "wrapper", I'm setting the uid and gid to the correct values, so that the output
> files end up under the correct owner and group.
>
> But when I tried to run the "makeindex.pl" script similarly under "wrapper", I got an error message:
>
> ./wrapper: error: insecure usage
>
> So I guess I'm wrong? Or are there switches that have to be thrown to make these run correctly?
>
> The reason I want to do this is to that I can make a CRON job that will update the TOPICS and CONTENTS files nightly.
>
> Can anyone shed light on this for me?
Follow-Ups:
|
|