From owner-freebsd-questions Mon May 1 15:52:26 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA09233 for questions-outgoing; Mon, 1 May 1995 15:52:26 -0700 Received: from kryten.atinc.com (kryten.atinc.com [198.138.38.7]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA09224 for ; Mon, 1 May 1995 15:52:19 -0700 Received: (jmb@localhost) by kryten.atinc.com (8.6.9/8.3) id SAA03653; Mon, 1 May 1995 18:44:14 -0400 Date: Mon, 1 May 1995 18:44:13 -0400 (EDT) From: "Jonathan M. Bresler" Subject: Re: majordomo-1.93 on FreeBSD 2.0 To: Plyaskin Sergey cc: "'.freebsd-questions@freebsd.org'" , "'.majordomo-users@greatcircle.com'" In-Reply-To: <2FA578FE@mailgate.cmp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk On Mon, 1 May 1995, Plyaskin Sergey wrote: > I'm trying to set up Majordomo-1.93 on the system running FreeBSD 950412 > SNAP. The problem is, as usualy, permissions. If I use BSD settings shown > below, I get "error: recompile with POSIX flags" > > W_USER=daemon > W_GROUP=majordom create a majordomo user as well as a majordomo group, that the wrapper should setuid/setgid to. wrapper will have to be install suid root in order for the getuid() == geteuid() and getgid == geteuid() checks to succeed. (provided i understand the recent changes to setui etc.) > W_CHOWN=${W_USER}.${W_GROUP} > W_CHMOD=6755 > WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \ > -DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\" \ > -DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\" > > If I use POSIX settings, I get the "unknown mailer error 5" message. The > settings are as following: "unknown mailer error " means define EIO 5 /* Input/output error */ from /usr/include/sys/errno.h > > W_UID = 199 > W_GID = 27 > W_CHOWN=root > W_CHMOD=4755 > WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \ > -DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\" \ > -DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\" \ > -DPOSIX_UID=${W_UID} -DPOSIX_GID=${W_GID} -DSETGROUP > > 199 is majordom uid, 27 is majordom gid. > In both cases, all files and directories under W_BIN are owned by > majordom:majordom. > > I know there many people using Majordomo on FreeBSD systems. Could you > please give me a hint. Please reply to splyaski@cmp.com. Thanks. > > -Serge splyaski@cmp.com > Jonathan M. Bresler jmb@kryten.atinc.com | Analysis & Technology, Inc. | 2341 Jeff Davis Hwy play go. | Arlington, VA 22202 ride bike. hack FreeBSD.--ah the good life | 703-418-2800 x346