can not write to queue directory, only works if chmoded to 777

Ruben Sanchez Lopez-Tofiño <[email protected]>
Newsgroups gmane.mail.majordomo.general
Message-ID <[email protected]>
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";
.
.
.
.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.