what dose the command "chflags" used for ?
freebsd-questions-local at be-well.no-ip.com
Thu Jun 19 13:22:26 PDT 2003
Supote Leelasupphakorn <pjn0211 at yahoo.com> writes:
> >> Dear all,
> >> Because we have the command "chmod" for change
> >> permissions of
> >> files so what does the command "chflags" used for
> >> 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.
More information about the freebsd-questions