From owner-freebsd-stable@FreeBSD.ORG Wed Nov 29 16:38:46 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD2FA16A492 for ; Wed, 29 Nov 2006 16:38:46 +0000 (UTC) (envelope-from stefan.lambrev@sun-fish.com) Received: from sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0413143D64 for ; Wed, 29 Nov 2006 16:36:57 +0000 (GMT) (envelope-from stefan.lambrev@sun-fish.com) Received: from sun-fish.com (localhost.cmotd.com [127.0.0.1]) by sun-fish.com (Postfix) with ESMTP id 1BBDF385FE for ; Wed, 29 Nov 2006 17:36:50 +0100 (CET) Received: from [192.168.3.201] (unknown [192.168.3.201]) by sun-fish.com (Postfix) with ESMTP id DA8AC38565 for ; Wed, 29 Nov 2006 17:36:49 +0100 (CET) Message-ID: <456DB725.6060105@sun-fish.com> Date: Wed, 29 Nov 2006 18:36:53 +0200 From: Stefan Lambrev User-Agent: Thunderbird 1.5.0.8 (X11/20061111) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV Cc: Subject: weird permitions 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: Wed, 29 Nov 2006 16:38:46 -0000 Hello, Can someone explain to me why next can happened on freebsd: 1. add 2 users in same group - user test and test-ro in group test 2. as user test: cd /home/test ; mkdir test; chmod 775 test; echo "asdasd" > ~/test/del.me 3. su - test-ro ; cd /home/test; vim del.me - make changes; force save (:x!) ls -l total 2 -rw-r--r-- 1 test-ro test 10 Nov 29 18:19 del.me (how is that possible ?) back "su - test" and try to edit this file - impossible! I do not know what the RFC says about it, but it is ultra weird for me that such ownership takeover is possible. 6.2-PRERELEASE FreeBSD Fri Oct 27 19:53:30 amd64 -- Best Wishes, Stefan Lambrev ICQ# 24134177