From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 12:58:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 974EE16A4BF for ; Tue, 2 Sep 2003 12:58:02 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id B177A43FDF for ; Tue, 2 Sep 2003 12:58:01 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 23135 invoked by uid 1000); 2 Sep 2003 20:00:11 -0000 Date: Tue, 2 Sep 2003 13:00:11 -0700 From: Joshua Oreman To: Ed Alley Message-ID: <20030902200011.GB23112@webserver> References: <200309021937.h82JbLY3011572@jordan.llnl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309021937.h82JbLY3011572@jordan.llnl.gov> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: your mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 19:58:02 -0000 On Tue, Sep 02, 2003 at 12:37:21PM -0700 or thereabouts, Ed Alley wrote: > > > On Tue, 2003-09-02 at 14:32, Ed Alley wrote: > >> I'm running FreeBSD-4.8. Sometimes the file permissions for /dev/null get > >> mysteriously changed by some unknown process to: > >> > >> crw------- 1 root wheel 2, 2 Sep 2 11:20 /dev/null > > > On Tue, 2003-09-02 Adam McLaurin wrote: > > That's very strange indeed. Have you tried using chflags to prevent the > > permissions from being changed? This should do the trick, albeit a dirty > > hack. > > Sorry, I didn't mention that I tried setting flags on /dev/null: > > chflags schg /dev/null > > What happens is that sendmail complains that it can't open /dev/null. > > Hey! I just realized that this may be a clue! Does sendmail fiddle with > /dev/null? What happens if sendmail tries to lock /dev/null after it > opens it? Does schg prevent fcntl from locking /dev/null, if that is > what sendmail uses? No. No. No. schg prevents anyone from writing to said file/device :-( -- Josh > > Ed Alley > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"