Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2002 12:39:08 +1000
From:      Tony Landells <ahl@austclear.com.au>
To:        Alex.Wilkinson@dsto.defence.gov.au
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: chflags schg 
Message-ID:  <200209270239.MAA11835@tungsten.austclear.com.au>
In-Reply-To: Message from "Wilkinson,Alex" <Alex.Wilkinson@dsto.defence.gov.au>  of "Fri, 27 Sep 2002 11:42:48 %2B0930." <20020927113819.I11669-100000@squirm.dsto.defence.gov.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
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						<ahl@austclear.com.au>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209270239.MAA11835>