From owner-freebsd-stable@FreeBSD.ORG Sat Oct 30 03:27:51 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBFE31065672 for ; Sat, 30 Oct 2010 03:27:51 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6DCB98FC21 for ; Sat, 30 Oct 2010 03:27:51 +0000 (UTC) Received: by gxk9 with SMTP id 9so2529593gxk.13 for ; Fri, 29 Oct 2010 20:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=jPXhkWXzG5/L3gdAKPt/oJkHZ2+WCMem8kNShACLJDs=; b=dWUv11MMctbFcJKZ5N24bT3yTaiRqqTwe0ay7kAuMeV9qLaky0qw0G6mO7gbE2EYC2 bKU8QjRr92HOhC0Y7bn8Ngofxc7cUmtNdLQof/i9al5iScjYYTRQALj0JisJOoU9BIsw ak4X8Ua1K70nmvOxN3t0ZPoD5HD3H6wqdiN3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=smN2V3TLtAu7nR7Cjkz74YAFODT0lqmzBMpx/OJBRzm0rbg5OSXC+Xdvs9lh7rq4mG VsFsZDM6f/wVtWEb9tg8yRMRFJvKw7x2ept21DGq7vpuoiLQ6ScCAt1Aizn3qPb1HcBB GV8EpnltmzqX+shdzs3xDObBm8bD9q5LocmYI= Received: by 10.151.154.2 with SMTP id g2mr23218278ybo.67.1288409270567; Fri, 29 Oct 2010 20:27:50 -0700 (PDT) Received: from centel.dataix.local ([99.181.136.243]) by mx.google.com with ESMTPS id q41sm2501277ybk.1.2010.10.29.20.27.47 (version=SSLv3 cipher=RC4-MD5); Fri, 29 Oct 2010 20:27:48 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4CCB90B1.90008@DataIX.net> Date: Fri, 29 Oct 2010 23:27:45 -0400 From: jhell Organization: http://www.DataIX.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.12) Gecko/20101028 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Chuck Swiger References: <4CC5F489.50403@omnilan.de> <88CBD70C-DA5A-4B3A-A703-7C0D6B189697@mac.com> In-Reply-To: <88CBD70C-DA5A-4B3A-A703-7C0D6B189697@mac.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Harald Schmalzbauer , freebsd-stable@freebsd.org Subject: Re: POSIX file permission (understanding) problem? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 03:27:51 -0000 On 10/25/2010 18:28, Chuck Swiger wrote: > chmod g+w testdir/ (as superuser, exit again) >> > > ls -ld testdir >> > > drwxrwx--x 2 nobody intern 512 25 Okt 23:03 testdir >> ls -l testdir >> total 0 >> -rw-r----- 1 nobody intern 0 25 Okt 23:03 testfile > >> -> Now editing with vi (as user harry) changes the ownership of the >> file and writing is successfull: >> ls -l testdir/ >> total 2 >> -rw-r----- 1 harry intern 5 25 Okt 23:10 testfile > > A file in a sticky directory may only be removed or renamed > by a user if the user has write permission for the directory and the user > is the owner of the file, the owner of the directory, or the super-user. Obviously he is not the owner of the file, directory, nor the superuser in this case so if I am missing something here please forgive me but I still see a big problem with this.... -- jhell,v