Immuatable
Dan Nelson
dnelson at allantgroup.com
Mon Nov 1 13:06:59 PST 2004
In the last episode (Nov 01), Miguel Mendez said:
> On Mon, 01 Nov 2004 21:20:16 +0100 "oskar johansson" <mia.oskar at 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 at allantgroup.com
More information about the freebsd-questions
mailing list