Date: Tue, 23 Jul 2002 20:55:05 +0100 From: Daniel Bye <dan@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: yet another sendmail permission problem Message-ID: <20020723195505.GB44190@catflap.home.slightlystrange.org> In-Reply-To: <20020723191531.GA22748@scee.dsj.net> References: <20020723191531.GA22748@scee.dsj.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 23, 2002 at 03:15:31PM -0400, David S. Jackson wrote: > Well, I had been getting this error: > > Jul 23 14:02:18 juno sendmail[2386]: NOQUEUE: SYSERR(dsj): can not write > to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=25): > Permission denied > > until I recently copied the submit.mc file from > /usr/src/contrib/yadayada to /etc/mail. Did a make submit.cf and > restarted the sendmail daemon using make stop and make start > I also double checked the permissions on various files and directories > according to what I found in UPDATING and /etc/mail/README as well as in > the archives. > > Now I've got an error I haven't seen before: > > Jul 23 14:46:29 juno sm-mta[2675]: g6NIkT53002675: SYSERR(root): > collect: Cannot write ./dfg6NIkT53002675 (bfcommit, uid=0, gid=25): > Permission denied > > I've done a locate sm-mta but can't find it (using several regex's). > Also, $> for i in `locate collect|grep bin`; do > > ls -l $i > > done > shows: > -rw-r--r-- 1 root wheel 13436 Apr 27 22:42 > /usr/obj/usr/src/usr.bin/mail/collect.o > -rw-r--r-- 1 root wheel 14076 Apr 27 22:52 > /usr/obj/usr/src/usr.sbin/sendmail/collect.o > -rw-r--r-- 1 root wheel 16592 Mar 24 15:18 > /usr/src/usr.bin/mail/collect.c > > None of these appears to have gid=25 or be in smmsp. Apr 27 was the > last cvsup I did; before I do it again, I'd like to get this problem > fixed. :-) Take a look at /var/spool/clientmqueue - the permissions should be 775, and the ownership should be root:smmsp. The sendmail binary is setgid, and the error you are seeing is because group smmsp does not have write access to that directory. # chown :smmsp /var/spool/clientmqueue # chmod g+w !$ and you should be set... You may need to do the same for /var/spool/mqueue. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020723195505.GB44190>