From owner-freebsd-questions Thu Apr 12 18:56:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc24.worldnet.att.net (mtiwmhc24.worldnet.att.net [204.127.131.49]) by hub.freebsd.org (Postfix) with ESMTP id 6C5C837B446 for ; Thu, 12 Apr 2001 18:56:56 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.101.235.104]) by mtiwmhc24.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010413015654.OQOD10838.mtiwmhc24.worldnet.att.net@worldnet.att.net>; Fri, 13 Apr 2001 01:56:54 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id D85A419B61; Thu, 12 Apr 2001 21:31:56 -0400 (EDT) Date: Thu, 12 Apr 2001 21:31:56 -0400 From: parv To: Bill Schoolcraft Cc: freebsd-questions@FreeBSD.ORG Subject: Re: freebsd equivalent of linux chattr (Re: resolv.conf overwrite) Message-ID: <20010412213156.A1270@moo.holy.cow> Mail-Followup-To: Bill Schoolcraft , freebsd-questions@FreeBSD.ORG References: <20010412020442.A4314@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from bill@wiliweld.com on Thu, Apr 12, 2001 at 04:53:56AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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