Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2004 15:06:56 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Miguel Mendez <flynn@energyhq.es.eu.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Immuatable
Message-ID:  <20041101210655.GH76157@dan.emsphone.com>
In-Reply-To: <20041101213022.6764978c.flynn@energyhq.es.eu.org>
References:  <1099340416.84f75f20mia.oskar@home.se> <20041101213022.6764978c.flynn@energyhq.es.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 01), Miguel Mendez said:
> On Mon, 01 Nov 2004 21:20:16 +0100 "oskar johansson" <mia.oskar@home.se> wrote:
> > Hello i was wondering how to check the immutable flag on FreeBSD,
> > on linux there is something called lsattr that is mention in the
> > man pages. Is ther any other way?
> 
> Check the -o option in ls(1)

Also note that Linux has only one immutable flag, where FreeBSD has
two.  "schg" is the system-immutable flag, settable only by root, and
"uchg" is the user-immutable flag, which the file owner can set.  From
a C program, just use the stat() syscall, and examine the st_flags
field.  More info in the chflags manpage.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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