File Flags in directories

Jordi Carrillo jordilin at
Sun Sep 3 05:39:56 PDT 2006

In the FreeBSD handbook when it talks about the file flags permissions it
"These flags add an additional level of security and control over files, but
not directories."
Well, I am able to put file flags in directories as well.
If I do:
mkdir curric
chflags uchange curric
It works well and then I can't modify the contents of the directory. So it
works flawlessly. Anybody knows that everything in Unix is a file, so flags
can be applied to anything. So, the handbook is wrong in this aspect, isn't


More information about the freebsd-questions mailing list