From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 12:37:28 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 27A8616A4C0 for ; Tue, 2 Sep 2003 12:37:28 -0700 (PDT) Received: from jordan.llnl.gov (jordan.llnl.gov [128.115.36.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 431D643FB1 for ; Tue, 2 Sep 2003 12:37:27 -0700 (PDT) (envelope-from alley1@llnl.gov) Received: from jordan.llnl.gov (wea@localhost [127.0.0.1]) by jordan.llnl.gov (8.12.6/8.12.6) with ESMTP id h82JbMtC011573; Tue, 2 Sep 2003 12:37:22 -0700 (PDT) Received: (from wea@localhost) by jordan.llnl.gov (8.12.6/8.12.6/Submit) id h82JbLY3011572; Tue, 2 Sep 2003 12:37:21 -0700 (PDT) Date: Tue, 2 Sep 2003 12:37:21 -0700 (PDT) From: Ed Alley Message-Id: <200309021937.h82JbLY3011572@jordan.llnl.gov> To: freebsd-questions@freebsd.org Subject: 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:37:28 -0000 > 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? Ed Alley