Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2005 13:50:13 GMT
From:      Ceri Davies <ceri@submonkey.net>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/84265: chmod(1) manpage omits implication of setting w on directory
Message-ID:  <200507311350.j6VDoDdx029054@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/84265; it has been noted by GNATS.

From: Ceri Davies <ceri@submonkey.net>
To: garys@opusnet.com
Cc: FreeBSD-gnats-submit@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.)
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507311350.j6VDoDdx029054>