Great Circle Associates Majordomo-Workers
(October 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: auto-wrapper in Makefile.PL for Majordomo-0.0199710080
From: "Brian L. Heess - home" <DMbong @ krumm . commline . com>
Date: Sun, 19 Oct 1997 14:15:00 -0400
To: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Cc: Majordomo Workers <majordomo-workers @ greatcircle . com>
In-reply-to: <ufara9jm0e2.fsf@sina.hpc.uh.edu>
References: "Brian L. Heess - home"'s message of Sat, 18 Oct 1997 03:16:52-0400 <v03110703b06e0d1e7e7d@[208.210.54.36]>

At 12:44 PM -0500 18/10/1997, Jason L Tibbitts III wrote:

>>>>>> "BLH" == "Brian L Heess <- home" <DMbong@krumm.commline.com>> writes:
>
>BLH> Did not actually function.
>
>Please tell me how it didn't function.  In the installed bin
>(i.e. $install_dir/bin) directory, what does ls -la give you?  There should
>be some short binary programs that are setuid, setgid and some perl scripts
>starting with dots.
>I used exactly the same code and procedure (excepting the strip commands)
>as in the package you sent me.  All I did was merge it into the main
>makefile when requested, and add make clean rules for it.

Jason, in the Makefile.PL you say

"Should the SETID wrappers be installed?
 Majordomo needs to be able to run as the proper user no matter who is
  running it.  This requires that it be installed SETID.  On some systems,
  the Majordomo programs can be installed SETID, but this requires both
  that the operating system support it ant that perl be built to support
  it.  If this is not possible, a set of tiny wrapper programs can be built
  which will take care of the SETID needs of Majordomo.
 If you don't know how to answer this question, answer NO.  Your system
  will be tested for SETID operation later in the build process.  If you
  need the wrappers, you will be told to rerun Makefile.PL.
Install the wrappers?  [no] ->"

If I say NO, this is the product:

=====
0-pimpf{root}2: make postinstall
/usr/local/bin/perl -w postinstall
Setting permissions...ok

Majordomo stores its lists in a hiearachy of directories.  These can be
 created for you now.  The various list files will be created as needed.

Create directories? [no] ->yes
/usr/local/lists, 23, 23
Making directories for commline.com.

The installation can do some basic global configuration using the questions
 answered before installation began.

If you do not do this, the rest of the installation may not proceed
 correctly, since the global password needs to be set in order for this
 program to make configuration changes.

Do basic global configuration now? [no] ->yes

Do not be alarmed if the first command fails.

/usr/local/majordomo2/bin/mj_shell -d commline.com -F inst.6126
YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!
Error executing /usr/local/majordomo2/bin/mj_shell, 65280 at postinstall
line 16
9, <STDIN> chunk 2.
*** Error code 2
make: Fatal error: Command failed for target `postinstall'
=====

1-pimpf{root}3: dir /usr/local/majordomo2/bin/
total 32
drwxr-xr-x  2 majordom majordom      512 Oct 19 14:05 ./
drwxr-xr-x  5 majordom majordom      512 Oct 19 14:04 ../
-r-sr-sr-x  1 majordom majordom     3187 Oct 19 14:00 mj_confirm*
-r-sr-sr-x  1 majordom majordom     6546 Oct 19 14:00 mj_email*
-r-sr-sr-x  1 majordom majordom     2202 Oct 19 14:00 mj_resend*
-r-sr-sr-x  1 majordom majordom    15442 Oct 19 14:00 mj_shell*

So, it looks like your test (that is mentioned above) to see if SETID is
needed is not working (and you spelled "and" as "ant" above :).  If I
explicitly tell it that the wrapper is required then all is fine and
postinstall works correctly.  I was never told that I needed to re-run
Makefile.PL:

0-pimpf{bheess}254: dir majordomo2/bin/
total 128
drwxr-xr-x  2 majordom majordom      512 Oct 18 03:06 ./
drwxr-xr-x  5 majordom majordom      512 Oct 18 02:45 ../
-r-xr-xr-x  1 majordom majordom     3187 Oct 18 02:59 .mj_confirm*
-r-xr-xr-x  1 majordom majordom     6546 Oct 18 02:59 .mj_email*
-r-xr-xr-x  1 majordom majordom     2202 Oct 18 02:59 .mj_resend*
-r-xr-xr-x  1 majordom majordom    15442 Oct 18 02:59 .mj_shell*
---s--s--x  1 majordom majordom    24576 Oct 18 02:59 mj_confirm*
---s--s--x  1 majordom majordom    24576 Oct 18 02:59 mj_email*
---s--s--x  1 majordom majordom    24576 Oct 18 02:59 mj_resend*
---s--s--x  1 majordom majordom    24576 Oct 18 02:59 mj_shell*

>BLH> Manifying ./blib/man1/mj_confirm.1 /usr/local/bin/pod2man: Invalid man
>BLH> page - no documentation in bin/mj_confirm Couldn't install
>BLH> ./blib/man1/mj_confirm.1
>
>That's because there isn't any documentation in bin/mj_confirm.

Cool enough, I didn't check.  :)

Cheers!

-Brian




Follow-Ups:
References:
Indexed By Date Previous: Re: Is 'wh*ch' useful? --> moved from -work
From: Manar Hussain <manar@ivision.co.uk>
Next: small typo
From: "Brian L. Heess - home" <DMbong@krumm.commline.com>
Indexed By Thread Previous: Re: auto-wrapper in Makefile.PL for Majordomo-0.0199710080
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: auto-wrapper in Makefile.PL for Majordomo-0.0199710080
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com