Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2000 16:22:07 +0200
From:      Thomas Bader <thomas@t-bader.ch>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Best /var/mail permissions?
Message-ID:  <20000801162207.C2814@home.t-bader.ch>
In-Reply-To: <Pine.BSF.4.21.0007312102280.346-100000@kirk.dsl.visi.com>; from dgl@visi.com on Mon, Jul 31, 2000 at 09:05:06PM -0500
References:  <200008010155.e711t8d08090@fedde.littleton.co.us> <Pine.BSF.4.21.0007312102280.346-100000@kirk.dsl.visi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Doug Lee <dgl@visi.com> [000801 04:05]:
> Pine claims to share the locking scheme used by most mail delivery agents,
> so it can coordinate with the delivery agents and avoid corrupting
> mailboxes.  This locking scheme involves creating a lock file in
> /var/mail, which Pine can't do without the 1777 permissions because it
> runs as the user.  In my experience, if I don't give it the 1777 perms in
> /var/mail, it uses file locking techniques but takes noticeably more time
> at it.  With 1777, it's really snappy. :-)  But 1777 made me nervous, and
> that's why I'm here. :-)

Why you don't just do the following

  chmod 1775 /var/mail
  chgrp mail /var/mail
  chmod g+s /usr/local/bin/pine
  chgrp mail /usr/local/bin/pine

This would grant write permissions to pine.

Thomas
--=20
  .-.   Thomas Bader =B7 thomasb@trash.net.remove =B7 http://www.t-bader.ch=
/  .-.
  oo|                                                                     o=
o|
 /`'\     Einen Unix-Shellaccount gibt es unter http://www.trash.net/    /`=
'\
(\_;/)       PGP Key-ID: 0x3A4B7F5D (RSA)  0x7584F5D8 (DSA/EG)          (\_=
;/)


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?20000801162207.C2814>