Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
Others
CHFLAGS(1) OpenBSD Reference Manual CHFLAGS(1)
NAME
chflags - change file flags
SYNOPSIS
chflags [-R [-H | -L | -P]] flags file [...]
DESCRIPTION
The chflags utility modifies the file flags of the listed files as speci-
fied by the flags operand. The flags of a file dictate special restric-
tions beyond those enforced by its mode/permissions.
The options are as follows:
-R Recursively descend through any specified directory arguments.
Change the flags of the file hierarchies rooted in the files in-
stead of just the files themselves.
-H If the -R option is also specified, symbolic links on the command
line are followed. (Symbolic links encountered in the tree
traversal are not followed.)
-L If the -R option is also specified, all symbolic links are fol-
lowed.
-P If the -R option is also specified, no symbolic links are fol-
lowed.
Flags are a comma separated list of keywords. The following keywords are
currently defined:
arch set the archived flag
opaque set the opaque flag (owner or super-user only)
nodump set the nodump flag (owner or super-user only)
sappnd set the system append-only flag (super-user only)
schg set the system immutable flag (super-user only)
uappnd set the user append-only flag (owner or super-user only)
uchg set the user immutable flag (owner or super-user only)
Putting the letters ``no'' before an option causes the flag to be turned
off. For example:
nouchg the immutable bit should be cleared
Symbolic links do not have flags, so unless the -H or -L option is set,
chflags on a symbolic link always succeeds and has no effect. The -H, -L
and -P options are ignored unless the -R option is specified. In addi-
tion, these options override each other and the command's actions are de-
termined by the last one specified.
Only the super-user can change the user flags on block and character de-
vices.
You can use "ls -lo" to see the flags of existing files.
The chflags utility exits 0 on success or >0 if an error occurred.
SEE ALSO
ls(1), chflags(2), stat(2), fts(3), symlink(7)
OpenBSD 2.6 May 2, 1995 1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
FreeBSD Sources for chflags(1) OpenBSD sources for chflags(1)
Up to: File Information - Obtaining file information (status, configuration, et al)
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
Others
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware >
chflags.1/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|