Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2012 15:12:14 +0100
From:      Matthew Seaman <>
To:        Ian Lord <>
Cc:        "''" <>
Subject:   Re: Sendmail recommended permissions for apache/php server
Message-ID:  <>
In-Reply-To: <AC28A3ECE8FFEA4CAE20B2B79FDB8F709B842A@server01.msdi.local>
References:  <AC28A3ECE8FFEA4CAE20B2B79FDB8F709B6DDB@server01.msdi.local> <> <AC28A3ECE8FFEA4CAE20B2B79FDB8F709B842A@server01.msdi.local>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 12/04/2012 14:40, Ian Lord wrote:
>> What are the permissions on /usr/libexec/sendmail/sendmail ? They shou=
>> >look like this:
>> >% ls -la /usr/libexec/sendmail/sendmail
>> >-r-xr-sr-x  1 root  smmsp  662136 Apr  1 08:38
>> >/usr/libexec/sendmail/sendmail
> # ls -al /usr/libexec/sendmail/sendmail
> -r-xr-sr-x  1 root  wheel  707160 Jan  3 02:57 /usr/libexec/sendmail/se=
> So the group is wrong... I changed it from wheel to smmsp and
> everything works fine now !
> Thanks a lot for the fix, but this server is a clean install of
> 9.0-RELEASE that I installed about 2-3 months ago. I never changed the
> permission myself on that file so I guess there is something wrong that=

> would need to be fixed (unless it's already fixed in newer versions).

I haven't had any similar problems on 9.0 systems I've installed so I
don't think it is an obvious and universal bug in the system installer.
 It might be the case that you did something differently -- if you can
reproduce the effect, and if it's not by doing something daft like 'oh,
and here is where we recursively chgrp the whole filesystem for no
apparent reason' then please do send a PR with the details.

If you want to ensure that almost everything has the correct ownership
and permissions, then you can use mtree(8).  eg.

    # cd /
    # mtree -Ue -f /etc/mtree/BSD.root.dist
    # mtree -Ue -f /etc/mtree/BSD.sendmail.dist
    # cd /usr
    # mtree -Ue -f /etc/mtree/BSD.usr.dist
    # cd /usr/include
    # mtree -Ue -f /etc/mtree/BSD.include.dist
    # cd /var
    # mtree -Ue -f /etc/mtree/BSD.var.dist

=2E.. although now I come to look at it, this won't actually fix the grou=
ownership on /usr/libexec/sendmail/sendmail for example.  For that,
you'ld probably have to use the system sources or the installation media.=



Dr Matthew J Seaman MA, D.Phil.

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>