From owner-freebsd-questions@FreeBSD.ORG Thu Aug 27 09:30:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24079106568B for ; Thu, 27 Aug 2009 09:30:48 +0000 (UTC) (envelope-from reko.turja@liukuma.net) Received: from www.liukuma.net (www.liukuma.net [62.220.235.15]) by mx1.freebsd.org (Postfix) with ESMTP id D1E528FC2E for ; Thu, 27 Aug 2009 09:30:47 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by www.liukuma.net (Postfix) with ESMTP id 16EB31CC5D; Thu, 27 Aug 2009 12:30:45 +0300 (EEST) X-Virus-Scanned: amavisd-new at liukuma.net Received: from www.liukuma.net ([127.0.0.1]) by localhost (www.liukuma.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id G3TWCcUyw4Ax; Thu, 27 Aug 2009 12:30:42 +0300 (EEST) Received: from rivendell (a88-114-134-146.elisa-laajakaista.fi [88.114.134.146]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: ignatz@www.liukuma.net) by www.liukuma.net (Postfix) with ESMTPSA id ADFDF1CC5C; Thu, 27 Aug 2009 12:30:42 +0300 (EEST) Message-ID: <6DFAF6A1805D48FABE793388572490D5@rivendell> From: "Reko Turja" To: "John W" , References: In-Reply-To: Date: Thu, 27 Aug 2009 12:30:43 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8064.206 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8064.206 Cc: Subject: Re: Can anyone reproduce this Samba problem? 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: Thu, 27 Aug 2009 09:30:48 -0000 > Interestingly, if I turn off 'inherit permissions', then 'inherit > owner' DOES take effect correctly. However, that means the sticky=20 > bit > does not get inherited, which will not work for me. I need both to=20 > be > inherited, and for some reason they are behaving mutually-exclusive > (with 'inherit permissions' taking precedence). If I understood your problem correctly, you don't actually want to set=20 sticky bit on the root directory, but suid - so the chmod would be=20 like chmod 4xxx mydir In FreeBSD suid-bitted directory will make all the subdirs to inherit=20 the owner. Sticky bit causes bit different behaviour - see sticky (8) and=20 chmod(1) -Reko=20