From owner-freebsd-stable Sat Jun 6 15:06:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA27085 for freebsd-stable-outgoing; Sat, 6 Jun 1998 15:06:20 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from conductor.synapse.net (conductor.synapse.net [199.84.54.18]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA27000 for ; Sat, 6 Jun 1998 15:05:02 -0700 (PDT) (envelope-from evanc@synapse.net) Received: (qmail 2881 invoked from network); 6 Jun 1998 22:04:51 -0000 Received: from localhost (HELO cello) (127.0.0.1) by localhost with SMTP; 6 Jun 1998 22:04:51 -0000 Message-ID: <004601bd9197$2666c340$c9252fce@cello.synapse.net> From: "Evan Champion" To: Subject: setuid on directory Date: Sat, 6 Jun 1998 18:04:58 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. A similar idea goes for the setgid bit. The setuid bit doesn't seem to do anything, and behaviour for the setgid bit seems to be the default. Is the manpage just out of touch with reality? I didn't realise that the setuid behaviour was ever available, and it started me thinking about a problem that I have elsewhere, so wanted to find out if this is a feature or not :-) Evan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message