From owner-freebsd-stable Thu Jun 11 20:43:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA19746 for freebsd-stable-outgoing; Thu, 11 Jun 1998 20:43:03 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA19717 for ; Thu, 11 Jun 1998 20:42:44 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id UAA07562; Thu, 11 Jun 1998 20:42:38 -0700 (PDT) (envelope-from jdp) Message-Id: <199806120342.UAA07562@austin.polstra.com> To: evanc@synapse.net Subject: Re: setuid on directory In-Reply-To: <004601bd9197$2666c340$c9252fce@cello.synapse.net> References: <004601bd9197$2666c340$c9252fce@cello.synapse.net> Organization: Polstra & Co., Seattle, WA Cc: stable@FreeBSD.ORG Date: Thu, 11 Jun 1998 20:42:38 -0700 From: John Polstra Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <004601bd9197$2666c340$c9252fce@cello.synapse.net>, Evan Champion wrote: > The manpage for chmod(1) says that if one sets the setuid bit on a > directory, files created within that directory will be owned by the owner of > the directory and not the uid of the current process. I suppose that pedantically speaking the man page is correct, since it goes on to say "if the underlying file system supports this feature: see chmod(2) and the suiddir option to mount(1)." Of course, no filesystems support this feature, and the suiddir option to mount(1) doesn't exist, as far as I can tell. :-) But speaking as a Man Of Reason, I have to agree with you that this is bogus. > A similar idea goes for the setgid bit. Actually, I don't see anything along those lines in chmod(1). -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message