Great Circle Associates Majordomo-Workers
(September 1997)
 

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

Subject: Re: Working wrapper/Makefile (was Re: 0.0199709090 SET-ID help)
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: 16 Sep 1997 18:48:48 -0500
To: majordomo-workers @ greatcircle . com
In-reply-to: "Brian L. Heess - home"'s message of Tue, 16 Sep 1997 00:15:19 -0400
References: "Brian L. Heess"'s message of Mon, 15 Sep 1997 14:01:47 -0400 (EDT) <Pine.BSF.3.96.970915133356.10635E-100000@krumm.commline.com> <v03110706b043a6981e30@[208.210.54.36]>

>>>>> "BLH" == "Brian L Heess <- home" <DMbong@krumm.commline.com>> writes:

BLH> It seems to work (though I have REALLY tried them other than running
BLH> them and getting the debug info stuff.

Cool.  If you got that far it should work, because mj_shell will croak in
the first 15 lines if the UID and GID aren't right.  Unfortunately I think
I'm going to have to disable configedit if you're running under the
wrapper, because I need to be able to drop permissions to make it work.
Else you give anyone a free shell running as the Majordomo user.  Too bad;
configedit is better than sliced bread (IMHO, of course).

If you can do the make postinstall thing and properly install the global
configuration and the response files without errors (and they end up with
the proper permissions) then I'd say it works as well as the non-wrapped
method.

BLH> I built a Makefile and a single source file, together they build 4
BLH> wrappers and have some instructions, and can set the perms.

Great.  Looking at this, here's my revised plan:

* During the perl Makefile.PL phase, ask the user if they want the wrapper.
  If so, generate and build the four wrapper executables.

* During the postinstall phase, do the switcheroo with the scripts and the
  wrapper behind everyone's back.  I don't want to actually build the
  wrapper here because we're root, but I can't check the setuid thingy
  until now.  So if I even check at all, it will only to see if the user
  needs to be told to start over building the wrappers this time.

Note that folks will get to use the wrappers even if they don't need them.

BLH> You all can check them out and let me know if it works, and I'll add
BLH> your platform to the list...

I'd appreciate knowing whether or not this works on HP-UX, which is the
other problem platform.

 - J<


Follow-Ups:
References:
Indexed By Date Previous: Re: removing duplicate addresses
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: removing duplicate addresses
From: "Brian L. Heess - home" <DMbong@krumm.commline.com>
Indexed By Thread Previous: Working wrapper/Makefile (was Re: 0.0199709090 SET-ID help)
From: "Brian L. Heess - home" <DMbong@krumm.commline.com>
Next: Re: Working wrapper/Makefile (was Re: 0.0199709090 SET-ID help)
From: Vince Skahan <vds@bcstectest.ca.boeing.com>

Google
 
Search Internet Search www.greatcircle.com