From owner-freebsd-hackers Mon May 27 14:53:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 727E337B405; Mon, 27 May 2002 14:53:09 -0700 (PDT) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id OAA05122; Mon, 27 May 2002 14:53:02 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda05120; Mon May 27 14:52:45 2002 Received: from cwsys.cwsent.com (cwsys2 [10.1.2.1]) by passer.osg.gov.bc.ca (8.12.3/8.12.3) with ESMTP id g4RLqd6h029203; Mon, 27 May 2002 14:52:39 -0700 (PDT) (envelope-from cy@cwsent.com) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.12.3/8.12.3) with ESMTP id g4RLqcr1001386; Mon, 27 May 2002 14:52:38 -0700 (PDT) (envelope-from cy@cwsys.cwsent.com) Message-Id: <200205272152.g4RLqcr1001386@cwsys.cwsent.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Reply-To: Cy Schubert - CITS Open Systems Group From: Cy Schubert - CITS Open Systems Group X-os: FreeBSD X-Sender: cy@cwsent.com To: freebsd-hackers@FreeBSD.ORG Cc: Claus Assmann , "Philip J. Koenig" , stable@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: non-root /var/run files (was Re: Sendmail, smmsp, and pid file) In-Reply-To: Message from Lyndon Nerenberg of "Mon, 27 May 2002 12:24:56 MDT." <200205271824.g4RIOutI008910@orthanc.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 27 May 2002 14:52:38 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200205271824.g4RIOutI008910@orthanc.ab.ca>, Lyndon Nerenberg writes : > [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. Maybe not for named because you're better off using the -t option. -- Cheers, Phone: 250-387-8437 Cy Schubert Fax: 250-387-5766 Team Leader, Sun/Alpha Team Email: Cy.Schubert@osg.gov.bc.ca Open Systems Group, CITS Ministry of Management Services Province of BC FreeBSD UNIX: cy@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message