docs/84265: chmod(1) manpage omits implication of setting w on directory
Ceri Davies
ceri at submonkey.net
Sun Jul 31 13:50:14 UTC 2005
The following reply was made to PR docs/84265; it has been noted by GNATS.
From: Ceri Davies <ceri at submonkey.net>
To: garys at opusnet.com
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: docs/84265: chmod(1) manpage omits implication of setting w on directory
Date: Sun, 31 Jul 2005 14:44:38 +0100
On 29 Jul 2005, at 02:57, Gary W. Swearingen wrote:
> I'd also add the following paragraph to the chmod(1) and chgrp(1)
> manpages, but I'll wait for approval before making patches.
>
> The group of a directory will be assigned to files newly created
> (eg, by > or an editor, but not by mv or cp) within it, despite the
> owner or group of the creator.
A reference to touch(1) rather than '>' reads better here, I think.
Also, the reference to "owner" should be "user id", as the creator of
the file probably doesn't have an owner ;)
> --- /pr/work/chmod..orig.1 Wed Jul 27 18:05:44 2005
> +++ /pr/work/chmod.1 Wed Jul 27 18:14:08 2005
> @@ -276,6 +276,16 @@
> ``o'' by itself), in combination with the
> .Ar perm
> symbols ``s'' or ``t'', are ignored.
> +.Pp
> +Setting the write permission on a directory will enable files to be
> +moved into or copied into or created in the directory. Files
> +created in the directory (eg, by
> +.Nm >
Here too.
> +or an editor, but not by
> +.Nm mv
> +or
> +.Nm cp )
> +will be assigned the group of the directory.
"Group id" (or similar) wins over "group" here for me, too.
Ceri
--
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former. -- Einstein (attrib.)
More information about the freebsd-doc
mailing list