From owner-freebsd-stable Mon May 27 11:25:23 2002 Delivered-To: freebsd-stable@freebsd.org Received: from orthanc.ab.ca (orthanc.ab.ca [216.123.203.186]) by hub.freebsd.org (Postfix) with ESMTP id 3B60D37B406; Mon, 27 May 2002 11:25:19 -0700 (PDT) Received: from orthanc.ab.ca (localhost.orthanc.ab.ca [127.0.0.1]) by orthanc.ab.ca (8.12.3/8.12.3) with ESMTP id g4RIOutI008910; Mon, 27 May 2002 12:24:56 -0600 (MDT) (envelope-from lyndon@orthanc.ab.ca) Message-Id: <200205271824.g4RIOutI008910@orthanc.ab.ca> From: Lyndon Nerenberg Organization: The Frobozz Magic Homing Pigeon Company To: Claus Assmann Cc: "Philip J. Koenig" , stable@FreeBSD.ORG, hackers@FreeBSD.ORG Reply-To: freebsd-hackers@FreeBSD.ORG Subject: non-root /var/run files (was Re: Sendmail, smmsp, and pid file) In-reply-to: Your message of "Mon, 27 May 2002 08:10:26 PDT." <20020527081026.B29438@zardoc.esmtp.org> X-Mailer: mh-e 5.0.92; MH 6.8.4; Emacs 21.2 Date: Mon, 27 May 2002 12:24:56 -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Redirecting to the hackers list -- please respect the reply-to header] >>>>> "Claus" == Claus Assmann writes: Claus> On Mon, May 27, 2002, Philip J. Koenig wrote: >> Any particular reason why the sendmail with 4.6-RC is writing sm- >> client.pid into /var/spool/clientmqueue instead of /var/run? Claus> Permissions. This points out a short-fall in the /var/run scheme: it can only be used by processes running with an euid of 0 at the time they create the file. If we have a /var/run/sendmail directory owned by the smmsp user then sendmail can create its pid files there. Likewise for bind. The purgedir function in /etc/rc (used to clean /var/run) will preserve the existing directory structure under /var/run, so the sub-directory tree will survive reboots. --lyndon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message