From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 13:19:56 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 2F8CE1065670 for ; Fri, 25 Jul 2008 13:19:56 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 039078FC15 for ; Fri, 25 Jul 2008 13:19:55 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from 68-189-244-97.dhcp.oxfr.ma.charter.com ([68.189.244.97] helo=Gregory-Larkins-Computer.local) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KMMhA-000Po2-QP; Fri, 25 Jul 2008 08:46:54 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by Gregory-Larkins-Computer.local (Postfix) with ESMTP id 4C949226E2CD; Fri, 25 Jul 2008 08:46:53 -0400 (EDT) Message-ID: <4889CB3B.3050308@FreeBSD.org> Date: Fri, 25 Jul 2008 08:46:51 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Bill Moran References: <20080725074526.8f7ae01a.wmoran@collaborativefusion.com> In-Reply-To: <20080725074526.8f7ae01a.wmoran@collaborativefusion.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 (-) 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 Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 13:19:56 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. | Hi Bill, ~From what I've read, you have to take some extra steps to get this to work. First, visit this page and search for "suiddir": http://www.freebsd.org/cgi/man.cgi?query=mount&sektion=8&apropos=0&manpath=FreeBSD+7.0-RELEASE I believe you have to run a kernel with the SUIDDIR option enabled, and then you have to mount your filesystem with the suiddir option, as described in the mount man page above. Let us know if that works for you or not. Best regards, Greg - -- Greg Larkin http://www.sourcehosting.net/ http://www.FreeBSD.org/ - The Power To Serve -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIics70sRouByUApARAnZbAJ9UK/3OA6Q9m4TIk6vnzT8Hrx4P+wCgnkw2 JaLLa7Lp7Y8v2Jm04qSWC1I= =WC5T -----END PGP SIGNATURE-----