Great Circle Associates Majordomo-Users
(December 2004)
 

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

Subject: can not write to queue directory, only works if chmoded to 777
From: Ruben Sanchez Lopez-Tofiņo <ruben @ info-ab . uclm . es>
Date: Mon, 20 Dec 2004 23:52:17 +0100
To: majordomo-users @ greatcircle . com
User-agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.2) Gecko/20040804

first, I'm sorry but my english is very bad.


I have installed last version of majordomo and I've a problem:

all go good during instalaltion, but when I do:  echo 'help' | mail 
listserv:

[majordom@al-basit majordomo]$ echo 'help' | mail listserv
[majordom@al-basit majordomo]$ WARNING: RunAsUser for MSP ignored, check 
group ids (egid=12, want=77)
can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, 
required=77): Permission denied


I definded MAIL_GID = 77 in Makefile, and I added majordom user to 77 
group, but that no solved nothing

as in this machine nobody login, finaly I do:

chmod 777 /var/spool/clientmqueue

and majordomo work fine, but this is a dirty solution. There are other 
best solution?

Thanks.

Salu2 y gracias.





there are parts of my config files and more info:

I use  ESMTP Sendmail 8.12.11/8.12.11

the owner of    /var/spool/clientmqueue   is  root:smmsp (0:77)

$ uname -a
Linux localhost.localdomain 2.6.4-1.tmb.5mdkenterprise #1 SMP Thu Mar 25 
20:53:01 CET 2004 i686 unknown unknown GNU/Linux 


-----------------------------------------------------
#################/etc/passwd

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/sh
daemon:x:2:2:daemon:/sbin:/bin/sh
.
.
smmsp:x:77:77:system user for sendmail:/var/spool/mqueue:/dev/null
.
.
majordom:x:2104:2::/usr/local/majordomo/:/bin/bash



-----------------------------------------------------
##################/etc/group
root:x:0:
bin:x:1:
daemon:x:2:
.
.
mail:x:12:majordom
.
.
smmsp:x:77:majordom




--------------------------------------------------------------------------
################/usr/local/majordomo/majordomo-1.94.5/majordomo.cf
PERL = /usr/bin/perl
CC = gcc
W_HOME = /usr/local/majordomo
MAN = $(W_HOME)/man
W_USER = 2104
W_GROUP = 2
FILE_MODE = 644
EXEC_MODE = 755
HOME_MODE = 751
WRAPPER_OWNER = root
WRAPPER_GROUP = $(W_GROUP)
WRAPPER_MODE = 4755
POSIX = -DPOSIX_UID=$(W_USER) -DPOSIX_GID=$(W_GROUP)
MAIL_GID = 77
W_SHELL = /bin/sh
W_PATH = /bin:/usr/bin:/usr/ucb
W_MAJORDOMO_CF = $(W_HOME)/majordomo.cf
TMPDIR = /usr/tmp
VERSION =    1.94.5
SHELL = /bin/sh
WRAPPER_FLAGS = -DBIN=\"$(W_HOME)\" -DPATH=\"PATH=$(W_PATH)\" \
        -DHOME=\"HOME=$(W_HOME)\" -DSHELL=\"SHELL=$(W_SHELL)\" \
        -DMAJORDOMO_CF=\"MAJORDOMO_CF=$(W_MAJORDOMO_CF)\"      \
        $(POSIX)
INSTALL = ./install.sh
TMP = $(TMPDIR)/mj-install-$(VERSION)
TOOLS =        archive.pl archive_mh.pl \
               digest.send makeindex.pl \
               logsummary.pl new-list sequencer
BINBIN =    approve bounce medit
BIN =        bounce-remind config_parse.pl majordomo majordomo.pl \
             majordomo_version.pl request-answer resend \
             shlock.pl config-test archive2.pl digest
INSTALL_FLAGS = -O $(W_USER) -g $(W_GROUP)
.
.
.
.
.


--------------------------------------------------------------------------
################/usr/local/majordomo/majordomo-1.94.5/Makefile

$whereami = "my_own_domain_example_here.com";
$whoami = "listserv\@$whereami";
$whoami_owner = "listman\@$whereami";
if ( defined $ENV{"HOME"}) {
     $homedir = $ENV{"HOME"};
} else {
     $homedir = "/usr/local/majordomo";
}
$listdir = "$homedir/lists";
$digest_work_dir = "/usr/local/majordomo/Digest";
$log = "$homedir/Log";
$sendmail_command = "/usr/sbin/sendmail";
$mailer = "$sendmail_command -oi -oee -f\$sender";
$bounce_mailer = "$sendmail_command -oi -oee -f\$sender -t";
.
.
.
.



Follow-Ups:
Indexed By Date Previous: Re: The evil zubscriber running autoreply
From: "IT Dept" <ismanager@ccbnpts.com>
Next: BOUNCE teleform@fpsm.tn.it: Header field too long (>1024)
From: "Simone Felici" <s.felici@alpikom.it>
Indexed By Thread Previous: Re: The evil zubscriber running autoreply
From: "IT Dept" <ismanager@ccbnpts.com>
Next: Re: can not write to queue directory, only works if chmoded to 777
From: "Joe R. Jah" <jjah@cloud.ccsf.cc.ca.us>

Google
 
Search Internet Search www.greatcircle.com