Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2001 04:53:56 -0700 (PDT)
From:      Bill Schoolcraft <bill@wiliweld.com>
To:        parv <parv_@yahoo.com>
Cc:        Leonard Zettel <zettel@acm.org>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: freebsd equivalent of linux chattr (Re: resolv.conf overwrite)
Message-ID:  <Pine.GSO.4.30.0104120452110.26221-100000@corten8>
In-Reply-To: <20010412020442.A4314@moo.holy.cow>

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




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