From owner-freebsd-questions Wed Apr 11 22:22:50 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 35A0B37B422 for ; Wed, 11 Apr 2001 22:22:41 -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 WAA28679; Wed, 11 Apr 2001 22:22:47 -0700 Date: Wed, 11 Apr 2001 22:18:35 -0700 (PDT) From: Bill Schoolcraft X-Sender: To: Leonard Zettel Cc: Subject: Re: resolv.conf overwrite In-Reply-To: <3AD51271.25615AEB@acm.org> 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 Wed, 11 Apr 2001 it looks like Leonard Zettel composed: zettel->Then I rebooted :-( zettel-> zettel->/etc/resolv.conf now contained zettel-> zettel->search zettel->nameserver 192.168.0.185 zettel-> ..... 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. ########################################################### CHATTR(1) CHATTR(1) NAME chattr - change file attributes on a Linux second extended file system SYNOPSIS chattr [ -RV ] [ -v version ] [ mode ] files... DESCRIPTION chattr changes the file attributes on a Linux second extended file system. A file with the `i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser can set or clear this attribute. ########################################################### -- 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