From owner-freebsd-questions Tue Jul 23 12:55:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0E1C37B400 for ; Tue, 23 Jul 2002 12:55:15 -0700 (PDT) Received: from catflap.home.slightlystrange.org (host217-39-153-84.in-addr.btopenworld.com [217.39.153.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 239F943E31 for ; Tue, 23 Jul 2002 12:55:14 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 17X5kP-000BWu-00 for freebsd-questions@freebsd.org; Tue, 23 Jul 2002 20:55:05 +0100 Date: Tue, 23 Jul 2002 20:55:05 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: yet another sendmail permission problem Message-ID: <20020723195505.GB44190@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <20020723191531.GA22748@scee.dsj.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020723191531.GA22748@scee.dsj.net> User-Agent: Mutt/1.4i X-Scanner: exiscan *17X5kP-000BWu-00*hY58PFccfRQ* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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