Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 1998 07:40:01 -0700 (PDT)
From:      Matthew Hunt <mph@pobox.com>
To:        doc@FreeBSD.ORG
Subject:   Re: docs/7504: sgid bit on directories undocumented in chmod(1) and umask...
Message-ID:  <199808061440.HAA10175@freefall.freebsd.org>

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

From: Matthew Hunt <mph@pobox.com>
To: andreas@klemm.gtn.com, FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  Subject: Re: docs/7504: sgid bit on directories undocumented in chmod(1) and umask...
Date: Thu, 6 Aug 1998 10:33:25 -0400

 On Thu, Aug 06, 1998 at 09:00:01AM +0200, Andreas Klemm wrote:
 
 > 	The chmod manpage only describes that it's possible to
 > 	set the s-bit for the directory owner, but it's also
 > 	possible to set the s bit of a directory, so that files
 > 	created in this directory get the GID of the directory
 > 	group and not the GID of the person who created the file.
 
 But... you describe the normal behavior of directories under
 BSD, regardless of the g+s bit!  Been hanging out in SysV land
 too much these days? :-)
 
 flarn:~/tmp$ mkdir spoo
 flarn:~/tmp$ ls -ld spoo
 drwxrwxr-x  2 mph  mph  512 Aug  6 10:31 spoo
 flarn:~/tmp$ touch spoo/fresh
 flarn:~/tmp$ ls -l spoo
 total 0
 -rw-rw-r--  1 mph  mph  0 Aug  6 10:32 fresh
 flarn:~/tmp$ chown :wheel spoo
 flarn:~/tmp$ touch spoo/daily
 flarn:~/tmp$ ls -l spoo
 total 0
 -rw-rw-r--  1 mph  wheel  0 Aug  6 10:32 daily
 -rw-rw-r--  1 mph  mph    0 Aug  6 10:32 fresh
 
 -- 
 Matthew Hunt <mph@pobox.com> * Inertia is a property of matter.
 http://www.pobox.com/~mph/pgp.key for PGP public key 0x67203349.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message



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