From owner-freebsd-fs Thu Nov 21 14:18:10 2002 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4938D37B401 for ; Thu, 21 Nov 2002 14:18:09 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B72A743E42 for ; Thu, 21 Nov 2002 14:18:08 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id gALMI3YB086559 for freebsd-fs@freebsd.org; Thu, 21 Nov 2002 16:18:03 -0600 (CST) (envelope-from dan) Date: Thu, 21 Nov 2002 16:18:03 -0600 From: Dan Nelson To: freebsd-fs@freebsd.org Subject: Should mkdir() inherit setgid? Message-ID: <20021121221802.GE86807@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I've got a bunch of systems NFS mounting some FreeBSD servers, and to manage write access to directories, I chgrp the directory and set the setgid bit to ensure that files created from Solaris, Tru64, and Linux boxes get the correct group ownership. This works great, except when the users create subdirectories. The directory itself gets the right group id, but does not inherit the setgid bit so any files created in the subdir have the wrong group permissions. Should we make newly-created directories inherit the setgid bit from their parent? Since FreeBSD doesn't use setgid on directories anyway, it shouldn't cause any harm. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message