Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2001 22:18:35 -0700 (PDT)
From:      Bill Schoolcraft <bill@wiliweld.com>
To:        Leonard Zettel <zettel@acm.org>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: resolv.conf overwrite
Message-ID:  <Pine.GSO.4.30.0104112209320.26221-100000@corten8>
In-Reply-To: <3AD51271.25615AEB@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

###########################################################
<snipped>


--
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0104112209320.26221-100000>