From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 21:36:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C892937B401 for ; Wed, 18 Jun 2003 21:36:45 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB42343F75 for ; Wed, 18 Jun 2003 21:36:42 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.20) id 19SrA8-000Jbr-AJ for freebsd-questions@freebsd.org; Thu, 19 Jun 2003 05:36:40 +0100 Date: Thu, 19 Jun 2003 05:36:40 +0100 From: Jez Hancock To: freebsd-questions@freebsd.org Message-ID: <20030619043640.GA75298@users.munk.nu> Mail-Followup-To: freebsd-questions@freebsd.org References: <20030619042409.2062.qmail@web40609.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030619042409.2062.qmail@web40609.mail.yahoo.com> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: what dose the command "chflags" used for ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 04:36:46 -0000 On Thu, Jun 19, 2003 at 05:24:09AM +0100, Supote Leelasupphakorn wrote: > Dear all, > > Because we have the command "chmod" for change the > permissions of > files so what does the command "chflags" used for and > what suituation > I must use it ? chflags is used to set system flags on files you don't want to be modified accidentally - most commonly the 'noschg' flag stops a file from being deleted by a normal user. See the man page for more details, and also the -o option to 'ls' (which shows flag settings for files.