Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2002 16:44:28 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        questions@freebsd.org
Subject:   Re: sendmail and mqueue permissions
Message-ID:  <20020722154428.GB28223@catflap.home.slightlystrange.org>
In-Reply-To: <20020722091256.A45436@freebsdportal.com>
References:  <20020722091256.A45436@freebsdportal.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 22, 2002 at 09:12:56AM -0400, Jim Freeze wrote:
> Hi:
> 
> I get the following error in my log:
> 
> rabbit kernel log messages:
> > bbit sendmail[177]: g67NOTKK000177: SYSERR(root): queueup: cannot create queue temp file ./tfg67NOTKK000177, uid=25: Permission denied
> 
> My permissions are:
> -r-xr-sr-x   1 root    smmsp  582428 Jul  7 18:45 sendmail*
> drwxrwx---   2 smmsp   smmsp     512 Jul 22 09:04 clientmqueue/
> drwxr-xr-x   2 root    daemon    512 Jul 22 09:08 mqueue/
> 
> I tried changing the owner of mqueue from root to smmsp, but then
> I could not receive mail.
> 
> Can someone tell me why I get the permission denied error.

Try this:

# chown :smmsp mqueue
# chmod g+w mqueue

The sendmail binary is setgid, so the group ownership on the mqueue 
directory is the significant part here.

HTH

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?20020722154428.GB28223>