Skip site navigation (1)Skip section navigation (2)
Date:      19 Jun 2003 16:22:20 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        Supote Leelasupphakorn <pjn0211@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: what dose the command "chflags" used for ?
Message-ID:  <44u1alhl6r.fsf@be-well.ilk.org>
In-Reply-To: <20030619064639.55561.qmail@web40601.mail.yahoo.com>
References:  <20030619064639.55561.qmail@web40601.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Supote Leelasupphakorn <pjn0211@yahoo.com> writes:

> >> 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.
> 
> but "chmod 600 <those_file> do the same thing why does
> "chflags" come to play ?

Flags can't be removed (at all) under raised securelevels.

Most of the flags have semantics that can't fully be duplicated with
normal file permissions.



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