From owner-freebsd-isp Mon May 27 11:36:52 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA01725 for isp-outgoing; Mon, 27 May 1996 11:36:52 -0700 (PDT) Received: from irbs.irbs.com ([199.182.75.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA01671 for ; Mon, 27 May 1996 11:35:28 -0700 (PDT) Received: (from jc@localhost) by irbs.irbs.com (8.7.5/8.6.6) id OAA03111; Mon, 27 May 1996 14:33:52 -0400 (EDT) From: John Capo Message-Id: <199605271833.OAA03111@irbs.irbs.com> Subject: Re: How to setup majordomo To: xiyuan@www.haplink.co.cn (xiyuan qian) Date: Mon, 27 May 1996 14:33:51 -0400 (EDT) Cc: freebsd-isp@freebsd.org In-Reply-To: <199505271330.WAA05045@www.haplink.co.cn> from xiyuan qian at "May 27, 95 10:30:47 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk xiyuan qian writes: > Hi, I have got perl5.001 and majordome-1.93 and read carefully inside the README & FAQ files and tried many times to modify the Makefile to suit my OS--FreeBSD2.1-STABLE but unfortunetly until now I have NOT let it go. Who there has the experience on setting up it? Would you please show me a light? Can you express a little extensive for my poor english understanding? > Best regards! Here are the diffs against my version of majordomo-1.93 and the distribution. If you were having trouble compiling wrapper.c, the included patch will fix that. John Capo jc@irbs.com IRBS Engineering FreeBSD Servers and Workstations (954) 792-9551 Unix/Internet Consulting - ISP Solutions diff -rc /u1/jc/majordomo-1.93/Makefile ./Makefile *** /u1/jc/majordomo-1.93/Makefile Sat Jan 7 13:06:48 1995 --- ./Makefile Wed Apr 19 13:58:26 1995 *************** *** 19,33 **** # # This is where "wrapper" looks for the programs it's supposed to run. ! W_BIN=/tools/majordomo-1.93 # This is the environment that (along with LOGNAME and USER inherited from the # parent process, and without the leading "W_" in the variable names) gets # passed to processes run by "wrapper" ! W_PATH=/bin:/usr/bin:/usr/ucb W_HOME=${W_BIN} ! W_SHELL=/bin/csh W_MAJORDOMO_CF=$(W_BIN)/majordomo.cf # Use these settings for BSD-based systems, including SunOS 4.x. If you're --- 19,33 ---- # # This is where "wrapper" looks for the programs it's supposed to run. ! W_BIN=/usr/local/majordomo-1.93 # This is the environment that (along with LOGNAME and USER inherited from the # parent process, and without the leading "W_" in the variable names) gets # passed to processes run by "wrapper" ! W_PATH=/bin:/sbin:/usr/bin:/usr/sbin W_HOME=${W_BIN} ! W_SHELL=/bin/tcsh W_MAJORDOMO_CF=$(W_BIN)/majordomo.cf # Use these settings for BSD-based systems, including SunOS 4.x. If you're *************** *** 45,52 **** # and comment out the BSD settings above. # # ! W_UID = 54 ! W_GID = 54 W_CHOWN=root W_CHMOD=4755 WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \ --- 45,52 ---- # and comment out the BSD settings above. # # ! W_UID = 1 ! W_GID = 99 W_CHOWN=root W_CHMOD=4755 WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \ diff -rc /u1/jc/majordomo-1.93/wrapper.c ./wrapper.c *** /u1/jc/majordomo-1.93/wrapper.c Sat Jan 7 12:28:00 1995 --- ./wrapper.c Wed Apr 19 13:59:25 1995 *************** *** 14,19 **** --- 14,20 ---- #endif #include + #include #ifndef STRCHR # define STRCHR(s,c) strchr(s,c) *************** *** 96,102 **** #if defined(SETGROUP) /* renounce any previous group memberships if we are running as root */ if (geteuid() == 0) { /* Should I exit if this test fails? */ ! char setgroups_used = "setgroups_was_included"; /* give strings a hint */ int groups[] = { POSIX_GID, 0 }; if (setgroups(1, groups) != 0) { --- 97,103 ---- #if defined(SETGROUP) /* renounce any previous group memberships if we are running as root */ if (geteuid() == 0) { /* Should I exit if this test fails? */ ! char *setgroups_used = "setgroups_was_included"; /* give strings a hint */ int groups[] = { POSIX_GID, 0 }; if (setgroups(1, groups) != 0) {