From owner-freebsd-stable@FreeBSD.ORG Sat Jul 24 07:41:32 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EBCD16A4CE for ; Sat, 24 Jul 2004 07:41:32 +0000 (GMT) Received: from sulfateuse.babasse.net (sulfateuse.babasse.net [213.41.169.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id C12F743D53 for ; Sat, 24 Jul 2004 07:41:30 +0000 (GMT) (envelope-from plonk-o-matic@teaser.fr) Received: from blackbox.babasse.net (sulfateuse.babasse.net [192.168.254.129]) i6O7fS2s040654 for ; Sat, 24 Jul 2004 09:41:29 +0200 (CEST) (envelope-from plonk-o-matic@teaser.fr) Received: from blackbox.babasse.net (localhost [127.0.0.1]) i6O7fSqH040651 for ; Sat, 24 Jul 2004 09:41:28 +0200 (CEST) (envelope-from plonk-o-matic@teaser.fr) Received: (from cyril@localhost) by blackbox.babasse.net (8.12.11/8.12.11/Submit) id i6O7fSKe040650; Sat, 24 Jul 2004 09:41:28 +0200 (CEST) (envelope-from plonk-o-matic@teaser.fr) X-Authentication-Warning: blackbox.babasse.net: cyril set sender to plonk-o-matic@teaser.fr using -f To: freebsd-stable@freebsd.org In-Reply-To: <004201c47150$1726aef0$7c00a8c0@amiel> (Amiel Ong's message of "Sat, 24 Jul 2004 15:30:15 +0800") References: <004201c47150$1726aef0$7c00a8c0@amiel> From: Cyril Guibourg Organization: Home sweet home Date: Sat, 24 Jul 2004 09:41:28 +0200 Message-ID: <87zn5p26on.fsf@blackbox.babasse.net> Lines: 13 User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.1 (Cuyahoga Valley, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.3 (sulfateuse.babasse.net [192.168.254.129]); Sat, 24 Jul 2004 09:41:29 +0200 (CEST) Subject: Re: permissions X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 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, 24 Jul 2004 07:41:32 -0000 "Amiel Ong" writes: > How can I make a directory permission so that > the user can write but cannot delete a file inside the directory? If your user shall *write* and *not* *create*, you can remove all his write permissions to that directory. This implies the file already exists. If he must be able to create a file this is more complicated, you will have to keep his write permissions at directory level, use the sticky bit and find a way to quickly change the file ownership once it is created. see chmod (2)