summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-01-30 22:54:34 +0100
committerJim Meyering <jim@meyering.net>2007-01-30 22:54:34 +0100
commit31bb8a431a022ffd24e4d0e08a3ee0b26099d302 (patch)
tree7b824316dbf20e67b35f217c8a0a58e88a3da606 /doc/coreutils.texi
parentc544a36826b899f093a3d0e49b19c0b6e3c55cde (diff)
downloadcoreutils-31bb8a431a022ffd24e4d0e08a3ee0b26099d302.tar.xz
* coreutils.texi (mkdir invocation): Say how to set the file
permission bits of a parent directory with mkdir -p.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 05bf7c609..033059a7f 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8446,12 +8446,20 @@ overridden in this way.
@opindex -p
@opindex --parents
@cindex parent directories, creating
-Make any missing parent directories for each argument. The file permission
-bits of parent directories are set to the umask modified by @samp{u+wx}.
-@xref{Directory Setuid and Setgid}, for how the set-user-ID and
-set-group-ID bits of parent directories are inherited.
-Ignore arguments corresponding to existing directories, and do not
-change their file mode bits.
+Make any missing parent directories for each argument, setting their
+file permission bits to the umask modified by @samp{u+wx}. Ignore
+existing parent directories, and do not change their file permission
+bits.
+
+To set the file permission bits of any newly-created parent
+directories to a value that includes @samp{u+wx}, you can set the
+umask before invoking @command{mkdir}. For example, if the shell
+command @samp{(umask u=rwx,go=rx; mkdir -p P/Q)} creates the parent
+@file{P} it sets the parent's permission bits to @samp{u=rwx,go=rx}.
+To set a parent's special mode bits as well, you can invoke
+@command{chmod} after @command{mkdir}. @xref{Directory Setuid and
+Setgid}, for how the set-user-ID and set-group-ID bits of
+newly-created parent directories are inherited.
@item -v
@item --verbose