Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2004 11:47:03 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Ed Budd <ebudd@grokking.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rationale for /var/spool/mqueue permissions with 5.1R
Message-ID:  <20040107114703.GB86459@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040106215931.44480f91.ebudd@grokking.org>
References:  <20040106215931.44480f91.ebudd@grokking.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--xXmbgvnjoT4axfJE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 06, 2004 at 09:59:31PM -0500, Ed Budd wrote:

> I've been working my way through the sendmail "bat" book (not
> *ALWAYS* the most exciting read but informative nonetheless) and
> have come across a recommendation to ensure that /var/spool/mqueue is
> set as root-owned with mode of 0700.=20
>=20
> However, it appears that by default the permissions on 5.1R are thus (at
> least on my two boxes):
>=20
> root:daemon=20
> drwxr-xr-x
>=20
> My question is: why are these permissions set this way or, perhaps more
> to the point, what (if anything) am I likely to break if I change them
> to the recommendations in the book?

It's the same in all recent version of FreeBSD.  Having
/var/spool/mqueue as mode 755 means that anyone can use the 'mailq'
command to see how many messages are queued up.  Of course, the queue
files themselves are generated mode 600 so you need to be root in
order to get any more information out of them, like who the message is
to and why it is sitting in the queue.  Other commands like 'hoststat'
will be similarly affected.

Changing the /var/spool/mqueue directory permissions to 700 shouldn't
have any bad consequences for sendmail(8) itself though.  The same is
not true of /var/spool/clientmqueue, which has to be at least mode 770
and owned by smmsp:smmsp

	Cheers,

	Matthew=09

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--xXmbgvnjoT4axfJE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQE/+/G3dtESqEQa7a0RAgvNAJ9S5jY6uBxYZCwcAXjHvEDHpUSNzACbBi88
c1mLBx7nir4rCwKfGVsLms0=
=U9EE
-----END PGP SIGNATURE-----

--xXmbgvnjoT4axfJE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040107114703.GB86459>