From owner-freebsd-questions Wed Apr 11 23: 4:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc28.worldnet.att.net (mtiwmhc28.worldnet.att.net [204.127.131.36]) by hub.freebsd.org (Postfix) with ESMTP id 7ED3737B53A for ; Wed, 11 Apr 2001 23:04:04 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.101.235.47]) by mtiwmhc28.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010412060357.PGTZ1582.mtiwmhc28.worldnet.att.net@worldnet.att.net>; Thu, 12 Apr 2001 06:03:57 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 39AF719B61; Thu, 12 Apr 2001 02:04:43 -0400 (EDT) Date: Thu, 12 Apr 2001 02:04:43 -0400 From: parv To: Bill Schoolcraft Cc: Leonard Zettel , freebsd-questions@FreeBSD.ORG Subject: freebsd equivalent of linux chattr (Re: resolv.conf overwrite) Message-ID: <20010412020442.A4314@moo.holy.cow> Mail-Followup-To: Bill Schoolcraft , Leonard Zettel , freebsd-questions@FreeBSD.ORG References: <3AD51271.25615AEB@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from bill@wiliweld.com on Wed, Apr 11, 2001 at 10:18:35PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG so, Bill Schoolcraft shared this... > > ..... there is a command in Linux called "chattr" and if you do > "chattr +i" it makes a file "immutable" meaning root cannot even > edit it without reversing those attributes, hence the origin of the > word. I keep some system security files set to that so some > scritpts won't overwrite them. > > Does anyone know the FreeBSD version of that command ? > It would in fact keep the file intact through a reboot. it's "chflags"; equivalent of "chattr +i" would be "chflags schg" for the definition given above. -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message