Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2001 21:31:56 -0400
From:      parv <parv_@yahoo.com>
To:        Bill Schoolcraft <bill@wiliweld.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: freebsd equivalent of linux chattr (Re: resolv.conf overwrite)
Message-ID:  <20010412213156.A1270@moo.holy.cow>
In-Reply-To: <Pine.GSO.4.30.0104120452110.26221-100000@corten8>; from bill@wiliweld.com on Thu, Apr 12, 2001 at 04:53:56AM -0700
References:  <20010412020442.A4314@moo.holy.cow> <Pine.GSO.4.30.0104120452110.26221-100000@corten8>

next in thread | previous in thread | raw e-mail | index | archive | help
so, Bill Schoolcraft shared this...
> 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_->
> 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, i assumed it too at one time but other way around (: thought linux 
would have chflags too; when i couldn't find it but found chattr i was
looking for chattr on freebsd ... before i cared to read to the
description of chattr.
 
while we are on the topic, os/390 v2r8 unix sys services (w/ mks tool kit)
has neither; only closest thing there is, that i know, is regular chmod ...
which of course doesn't do much good like ch(attr|flags). :(

- parv 

--

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?20010412213156.A1270>