From owner-freebsd-questions Thu Apr 12 4:58:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ruby.he.net (ruby.he.net [216.218.187.2]) by hub.freebsd.org (Postfix) with ESMTP id 5A72737B43E for ; Thu, 12 Apr 2001 04:58:20 -0700 (PDT) (envelope-from bill@wiliweld.com) Received: from corten8.billschoolcraft.com (adsl-63-193-247-201.dsl.snfc21.pacbell.net [63.193.247.201]) by ruby.he.net (8.8.6/8.8.2) with ESMTP id EAA08026; Thu, 12 Apr 2001 04:58:04 -0700 Date: Thu, 12 Apr 2001 04:53:56 -0700 (PDT) From: Bill Schoolcraft X-Sender: To: parv Cc: Leonard Zettel , Subject: Re: freebsd equivalent of linux chattr (Re: resolv.conf overwrite) In-Reply-To: <20010412020442.A4314@moo.holy.cow> Message-ID: System-ID: [en] (I; SunOS 5.8 i86pc) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At Thu, 12 Apr 2001 it looks like parv composed: parv_->so, Bill Schoolcraft shared this... parv_->> parv_->> ..... there is a command in Linux called "chattr" and if you do parv_->> "chattr +i" it makes a file "immutable" meaning root cannot even parv_->> edit it without reversing those attributes, hence the origin of the parv_->> word. I keep some system security files set to that so some parv_->> scritpts won't overwrite them. parv_->> parv_->> Does anyone know the FreeBSD version of that command ? parv_->> It would in fact keep the file intact through a reboot. parv_-> parv_->it's "chflags"; equivalent of "chattr +i" would be "chflags schg" for parv_->the definition given above. parv_-> ..........Thanks, I always assumed that was a Unix neutral command, thanks for the help. :) -- Bill Schoolcraft PO Box 210076 -o) San Francisco CA 94121 /\ "UNIX, A Way Of Life." _\_v http://forwardslashunix.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message