]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(Mode Structure): Mention filesystem-specific
authorJim Meyering <jim@meyering.net>
Sat, 8 Feb 2003 20:31:48 +0000 (20:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 8 Feb 2003 20:31:48 +0000 (20:31 +0000)
permissions and that mounting a filesystem as read-only may
override actual file permissions.  Use @command instead
of @code for program names.

doc/perm.texi

index 296dd5f20b661936f2b3f4e5a3a1865422306ff4..a43a3341498da8e8a748e43e7f85a14d832a3485 100644 (file)
@@ -47,8 +47,8 @@ Files are given an owner and group when they are created.  Usually the
 owner is the current user and the group is the group of the directory
 the file is in, but this varies with the operating system, the
 filesystem the file is created on, and the way the file is created.  You
-can change the owner and group of a file by using the @code{chown} and
-@code{chgrp} commands.
+can change the owner and group of a file by using the @command{chown} and
+@command{chgrp} commands.
 
 In addition to the three sets of three permissions listed above, a
 file's permissions have three special components, which affect only
@@ -77,6 +77,38 @@ unless they own the file or the directory; this is called the
 @dfn{restricted deletion flag} for the directory.
 @end enumerate
 
+In addition to the permissions listed above, there may be file attributes
+specific to the filesystem, e.g: access control lists (ACLs), whether a
+file is compressed, whether a file can be modified (immutability), whether
+a file can be dumped.  These are usually set using programs
+specific to the filesystem.  For example:
+@c should probably say a lot more about ACLs... someday
+
+@table @asis
+@item ext2
+On GNU and Linux/GNU the file permissions (``attributes'') specific to
+the ext2 filesystem are set using @command{chattr}.
+
+@item FFS
+On FreeBSD the file permissions (``flags'') specific to the FFS
+filesystem are set using @command{chrflags}.
+@end table
+
+Although a file's permission ``bits'' allow an operation on that file,
+that operation may still fail, because:
+
+@itemize
+@item
+the filesystem-specific permissions do not permit it;
+
+@item
+the filesystem is mounted as read-only.
+@end itemize
+
+For example, if the immutable attribute is set on a file,
+it cannot be modified, regardless of the fact that you
+may have just run @code{chmod a+w FILE}.
+
 @node Symbolic Modes
 @section Symbolic Modes