From owner-freebsd-questions@FreeBSD.ORG Mon Feb 1 18:56:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E1EE106566C for ; Mon, 1 Feb 2010 18:56:42 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id AC8728FC1B for ; Mon, 1 Feb 2010 18:56:41 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id o11Iucqw026768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 1 Feb 2010 12:56:38 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.3) with ESMTP id o11Iub53041615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 1 Feb 2010 12:56:37 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.3/Submit) id o11Iub78041613; Mon, 1 Feb 2010 12:56:37 -0600 (CST) (envelope-from dan) Date: Mon, 1 Feb 2010 12:56:37 -0600 From: Dan Nelson To: Nerius Landys Message-ID: <20100201185637.GE50360@dan.emsphone.com> References: <560f92641001312208r1af8a8a2j2be83fe231ad8d74@mail.gmail.com> <44ljfc2a2w.fsf@be-well.ilk.org> <560f92641002011041x484518bdqc9828eff404254fb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <560f92641002011041x484518bdqc9828eff404254fb@mail.gmail.com> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: clamav-milter 0.95.3 at email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Mon, 01 Feb 2010 12:56:38 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: Lowell Gilbert , FreeBSD Mailing List Subject: Re: /root permission reset on boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 18:56:42 -0000 In the last episode (Feb 01), Nerius Landys said: > >> I'm running FreeBSD 7.1 i386, and even after I "chmod 700 /root", after > >> a reboot it goes back to permission 755. 1. What's the reason for > >> this? There must be a good reason and I would like to know it. > >> Everything in FreeBSD just makes sense and is well designed (honestly, > >> no sarcasm here). > > > > It's something local to your machine; this doesn't happen on any machine > > I've used, and I can't find anything that could be configured for that. > > Perhaps I was mistaken about this happening after every reboot. Perhaps > it only happens when I upgrade my world (make buildworld, make > installworld, etc.). I do this often (every time a release patch is > released). > > So, perhaps this only happens during these upgrades? I was going to point blame at mtree, but the file for the root filesystem ( /etc/mtree/BSD.root.dist ) just lists /root without forcing a mode value. You could probably use either dtrace or the audit system to log exactly when the permissions get changed. -- Dan Nelson dnelson@allantgroup.com