Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 1999 11:33:14 -0700 (MST)
From:      "Chad R. Larson" <chad@freebie.dcfinc.com>
To:        pfeifer@dbai.tuwien.ac.at (Gerald Pfeifer)
Cc:        ru@ucb.crimea.ua, dhesi@rahul.net, freebsd-stable@FreeBSD.ORG
Subject:   Re: 'make installworld' makes /var/mail world-not-writable
Message-ID:  <199903301833.LAA24075@freebie.dcfinc.com>
In-Reply-To: <Pine.GSO.4.10.9903301657210.16716-100000@markab.dbai.tuwien.ac.at> from Gerald Pfeifer at "Mar 30, 99 04:59:19 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> On Tue, 30 Mar 1999, Ruslan Ermilov wrote:
> > /var/mail was never supposed to be world-writable.
> > The proper mode for it is 0775.
> 
> Nope, the proper mode for /var/mail/ is rwxrwxrwt.
> 
> How else is locking supposed to work?  Or do you want to run all your
> mail user agents suid root?

The user agents are supposed to lock using the lockf(2) call on the
mailbox, which is owned by the user.  Mail transport agents, on the
other hand, are supposed to run "set group id" to group "mail".  The
permissions should be:

    drwxrwxr-x  2 bin   mail        512 Feb 24 19:16 /var/mail
    -rw-------  1 chad  sysadm     4593 Mar 30 11:28 /var/mail/chad

	-crl
--
Chad R. Larson (CRL15)   602-953-1392   Brother, can you paradigm?
chad@dcfinc.com chad@larsons.org chad@anasazi.com larson1@home.net   
DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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