From owner-freebsd-questions Thu Jul 13 7:17:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 6CC9737C43B for ; Thu, 13 Jul 2000 07:17:15 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13CjZS-0002D7-00; Thu, 13 Jul 2000 15:02:34 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13CjZS-000Mg0-00; Thu, 13 Jul 2000 15:02:34 +0100 Date: Thu, 13 Jul 2000 15:02:34 +0100 From: Ben Smithurst To: Harry Putnam Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /var/mail Read only with mutt Message-ID: <20000713150234.G48641@strontium.scientia.demon.co.uk> References: <87sntfapy5.fsf@satellite.local.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="uAgJxtfIS94j9H4T" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <87sntfapy5.fsf@satellite.local.lan> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --uAgJxtfIS94j9H4T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Harry Putnam wrote: > A new comer to FreeBSD, I think I may have something set wrong on my > mail spool directory. Accessing mail from /var/mail/$USER with mutt > (version mutt-1.2). I'm getting a message from mutt that the mailbox > is readonly if I use the `d' (delete) key. However looking at the > permissions with ls -l tells a different story: >=20 > ls -l /var/mail > total 183 > total 183 > -rw------- 1 reader reader 112437 Jul 12 16:22 reader > -rw------- 1 root wheel 61616 Jul 12 03:10 root >=20 > Does that look like the normal permissions for mailspool files? >=20 > What other reason may cause that error from mutt? Mutt might need write access to /var/mail to create lock files. I think it depends how you compile Mutt -- I'm not sure of the details, but I think there's a setgid mail helper program called mutt_dotlock which can handle the locking. I prefer to make /var/mail mode 1777 (i.e. world writable with the sticky bit, like /tmp). Just do a 'chmod 1777 /var/mail'. If you intend to upgrade using make world, you should put this command in /etc/rc.local or somewhere since the upgrade will reset /var/mail to its default mode (775). --=20 Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / --uAgJxtfIS94j9H4T Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: fLZSkh/6umrmVtlSwwvZMznVP0XxCEvU iQCVAwUBOW3L+SsPVtiZOS99AQEIDgP8C8voYxzPCdG+Q90Y1lmo3nVas60qgida OPU6vdDiF63oqyzzst6BIVDbNq49o+tZU5EH/BQlPq4sgrzHKJ3S8Fnb9t/n1FP2 AUEkdM5t8ng/AxrTdRVn4D1lTcUHcS3UpYzquavgibT3LIcZJwJmiOhCol7R/nsJ M0X6lkC8+bU= =b3qa -----END PGP SIGNATURE----- --uAgJxtfIS94j9H4T-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message