1997-04-26 21:21:57 +08:00
|
|
|
.\" -*- nroff -*-
|
1997-04-26 22:37:06 +08:00
|
|
|
.TH CHATTR 1 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH NAME
|
|
|
|
chattr \- change file attributes on a Linux second extended file system
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B chattr
|
|
|
|
[
|
|
|
|
.B \-RV
|
|
|
|
]
|
|
|
|
[
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-v
|
|
|
|
.I version
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
[
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.I mode
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
.I files...
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B chattr
|
1997-05-09 11:06:31 +08:00
|
|
|
changes the file attributes on a Linux second extended file system.
|
1997-04-26 21:21:57 +08:00
|
|
|
.PP
|
1997-04-30 01:57:00 +08:00
|
|
|
The format of a symbolic mode is +-=[ASacdisu].
|
1997-04-26 21:21:57 +08:00
|
|
|
.PP
|
|
|
|
The operator `+' causes the selected attributes to be added to the
|
|
|
|
existing attributes of the files; `-' causes them to be removed; and
|
|
|
|
`=' causes them to be the only attributes that the files have.
|
|
|
|
.PP
|
1997-04-30 01:57:00 +08:00
|
|
|
The letters `ASacdisu' select the new attributes for the files:
|
|
|
|
don't update atime (A), synchronous updates (S), append only (a),
|
|
|
|
compressed (c), immutable (i), no dump (d),
|
1997-04-26 21:34:30 +08:00
|
|
|
secure deletion (s), and undeletable (u).
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-R
|
1997-04-26 21:21:57 +08:00
|
|
|
Recursively change attributes of directories and their contents.
|
1999-01-05 15:02:39 +08:00
|
|
|
Symbolic links encountered during recursive directory traversals are
|
|
|
|
ignored.
|
1997-04-26 21:21:57 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-V
|
1999-01-05 15:02:39 +08:00
|
|
|
Be verbose with chattr's output and print the program version.
|
1997-04-26 21:21:57 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-v " version"
|
|
|
|
Set the filesystem version.
|
1997-04-26 21:34:30 +08:00
|
|
|
.SH ATTRIBUTES
|
1997-04-30 01:57:00 +08:00
|
|
|
When a file with the 'A' attribute set is modified, its atime record is
|
1997-05-09 11:06:31 +08:00
|
|
|
not modified. This avoids a certain amount of disk I/O for laptop
|
1997-04-30 01:57:00 +08:00
|
|
|
systems.
|
1998-03-30 09:20:55 +08:00
|
|
|
.PP
|
1997-04-26 21:34:30 +08:00
|
|
|
A file with the `a' attribute set can only be open in append mode for writing.
|
1998-03-30 09:20:55 +08:00
|
|
|
Only the superuser can set or clear this attribute.
|
|
|
|
.PP
|
1997-04-26 21:34:30 +08:00
|
|
|
A file with the `c' attribute set is automatically compressed on the disk
|
|
|
|
by the kernel. A read from this file returns uncompressed data. A write to
|
|
|
|
this file compresses data before storing them on the disk.
|
1998-03-30 09:20:55 +08:00
|
|
|
.PP
|
1997-04-26 21:34:30 +08:00
|
|
|
A file with the `d' attribute set is not candidate for backup when the
|
|
|
|
.BR dump (8)
|
|
|
|
program is run.
|
1998-03-30 09:20:55 +08:00
|
|
|
.PP
|
1997-04-26 21:34:30 +08:00
|
|
|
A file with the `i' attribute cannot be modified: it cannot be deleted or
|
|
|
|
renamed, no link can be created to this file and no data can be written
|
|
|
|
to the file. Only the superuser can set or clear this attribute.
|
1998-03-30 09:20:55 +08:00
|
|
|
.PP
|
1997-04-26 21:34:30 +08:00
|
|
|
When a file with the `s' attribute set is deleted, its blocks are zeroed and
|
|
|
|
written back to the disk.
|
1998-03-30 09:20:55 +08:00
|
|
|
.PP
|
1997-04-26 21:34:30 +08:00
|
|
|
When a file with the `S' attribute set is modified,
|
|
|
|
the changes are written synchronously on the disk; this is equivalent to
|
|
|
|
the `sync' mount option applied to a subset of the files.
|
1998-03-30 09:20:55 +08:00
|
|
|
.PP
|
1997-05-09 11:06:31 +08:00
|
|
|
When a file with the `u' attribute set is deleted, its contents are saved.
|
1997-04-26 21:34:30 +08:00
|
|
|
This allows the user to ask for its undeletion.
|
1998-03-30 09:20:55 +08:00
|
|
|
.PP
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH AUTHOR
|
|
|
|
.B chattr
|
1997-05-09 11:06:31 +08:00
|
|
|
was written by Remy Card <card@masi.ibp.fr>, the developer and maintainer
|
1997-04-26 21:21:57 +08:00
|
|
|
of the ext2 fs.
|
|
|
|
.SH BUGS AND LIMITATIONS
|
1997-04-26 21:34:30 +08:00
|
|
|
As of ext2 fs 0.5a, the `c' and `u' attribute are not honoured by the kernel
|
1997-04-29 23:29:49 +08:00
|
|
|
code. As of the Linux 2.0 kernel, the 'A' attribute is not yet supported by
|
|
|
|
the kernel code. (The noatime code is still in testing.)
|
1997-04-26 21:21:57 +08:00
|
|
|
.PP
|
1997-04-26 21:34:30 +08:00
|
|
|
These attributes will be implemented in a future ext2 fs version.
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH AVAILABILITY
|
|
|
|
.B chattr
|
1998-03-30 09:20:55 +08:00
|
|
|
is part of the e2fsprogs package and is available for anonymous
|
|
|
|
ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR lsattr (1)
|