Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2001 02:04:43 -0400
From:      parv <parv_@yahoo.com>
To:        Bill Schoolcraft <bill@wiliweld.com>
Cc:        Leonard Zettel <zettel@acm.org>, freebsd-questions@FreeBSD.ORG
Subject:   freebsd equivalent of linux chattr (Re: resolv.conf overwrite)
Message-ID:  <20010412020442.A4314@moo.holy.cow>
In-Reply-To: <Pine.GSO.4.30.0104112209320.26221-100000@corten8>; from bill@wiliweld.com on Wed, Apr 11, 2001 at 10:18:35PM -0700
References:  <3AD51271.25615AEB@acm.org> <Pine.GSO.4.30.0104112209320.26221-100000@corten8>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010412020442.A4314>