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
References:
|
|