From owner-freebsd-questions Thu Sep 26 19:39:13 2002 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 8435837B401 for ; Thu, 26 Sep 2002 19:39:12 -0700 (PDT) Received: from ns2.austclear.com.au (ns2.austclear.com.au [192.43.185.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 188B743E4A for ; Thu, 26 Sep 2002 19:39:11 -0700 (PDT) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.166.65]) by ns2.austclear.com.au (8.11.2/8.11.3) with ESMTP id g8R2d8X65917; Fri, 27 Sep 2002 12:39:09 +1000 (EST) (envelope-from ahl@austclear.com.au) Received: from tungsten (tungsten [192.168.166.65]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id MAA11835; Fri, 27 Sep 2002 12:39:08 +1000 (EST) Message-Id: <200209270239.MAA11835@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: Alex.Wilkinson@dsto.defence.gov.au Cc: freebsd-questions@FreeBSD.ORG Subject: Re: chflags schg In-Reply-To: Message from "Wilkinson,Alex" of "Fri, 27 Sep 2002 11:42:48 +0930." <20020927113819.I11669-100000@squirm.dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 27 Sep 2002 12:39:08 +1000 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alex.Wilkinson@dsto.defence.gov.au said: > When setting the the sytem/user immutable flag on a file is there > anyway to tell by looking at the file's perms that it has been set > immuteable ? Or is there a command to check this ? From "man ls" -o Include the file flags in a long (-l) output. so "ls -lo /kernel*" gives: -r-xr-xr-x 1 root wheel schg 1458708 Jul 30 09:01 /kernel -r-xr-xr-x 1 root wheel - 3258128 Nov 21 2000 /kernel.GENERIC /kernel has schg, but kernel.GENERIC has no flags set. Tony -- Tony Landells Principal Networks, Security & IT Systems Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message