From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 12:50:36 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F6F61065684 for ; Fri, 25 Jul 2008 12:50:36 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 59F3F8FC08 for ; Fri, 25 Jul 2008 12:50:36 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (vanquish.ws.pitbpa0.priv.collaborativefusion.com [192.168.2.162]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Fri, 25 Jul 2008 08:50:35 -0400 id 00056482.4889CC1B.0000EE03 Date: Fri, 25 Jul 2008 08:49:48 -0400 From: Bill Moran To: Subhro Message-Id: <20080725084948.50f39811.wmoran@collaborativefusion.com> In-Reply-To: References: <20080725074526.8f7ae01a.wmoran@collaborativefusion.com> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: setuid not working on directories, or am I doing something wrong? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 12:50:36 -0000 In response to Subhro : > Give me the output of 'mount' please. In the example detailed below: $ mount /dev/ad4s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad4s1e on /tmp (ufs, local, soft-updates) /dev/ad4s1f on /usr (ufs, local, soft-updates) /dev/ad4s1d on /var (ufs, local, soft-updates) procfs on /proc (procfs, local) This was in my home directory, which is /usr/home/wmoran Again, the behaviour persists across at least three machines (this one with 7.0, and two others with 6.X). > On Fri, Jul 25, 2008 at 5:15 PM, Bill Moran > wrote: > > > > $ whoami > > wmoran > > $ mkdir test2 > > $ sudo chown daemon:daemon test2 > > $ sudo chmod 6777 test2 > > $ ls -lah | grep test2 > > drwsrwsrwx 2 daemon daemon 512B Jul 25 07:40 test2 > > $ touch test2/testfile.empty > > $ ls -lah test2 > > total 8 > > drwsrwsrwx 2 daemon daemon 512B Jul 25 07:41 . > > drwxr-xr-x 59 wmoran wheel 6.0K Jul 25 07:40 .. > > -rw-r--r-- 1 wmoran daemon 0B Jul 25 07:41 testfile.empty > > > > Shouldn't testfile.empty show up as daemon:daemon? or am I > > misunderstanding something about how setuid works? > > > > This is on FreeBSD 7, but I observe the same thing on 6.3 and 6.2. > > > > -- > > Bill Moran > > Collaborative Fusion Inc. > > http://people.collaborativefusion.com/~wmoran/ > > > > wmoran@collaborativefusion.com > > Phone: 412-422-3463x4023 > > > > **************************************************************** > > IMPORTANT: This message contains confidential information and is > > intended only for the individual named. If the reader of this > > message is not an intended recipient (or the individual > > responsible for the delivery of this message to an intended > > recipient), please be advised that any re-use, dissemination, > > distribution or copying of this message is prohibited. Please > > notify the sender immediately by e-mail if you have received > > this e-mail by mistake and delete this e-mail from your system. > > E-mail transmission cannot be guaranteed to be secure or > > error-free as information could be intercepted, corrupted, lost, > > destroyed, arrive late or incomplete, or contain viruses. The > > sender therefore does not accept liability for any errors or > > omissions in the contents of this message, which arise as a > > result of e-mail transmission. > > **************************************************************** > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > > > -- > WC Fields - "A rich man is nothing but a poor man with money." > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Bill Moran Collaborative Fusion Inc. http://people.collaborativefusion.com/~wmoran/ wmoran@collaborativefusion.com Phone: 412-422-3463x4023 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. ****************************************************************