From owner-freebsd-stable@FreeBSD.ORG Sat Jul 24 11:31:13 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 1DC5116A4CE for ; Sat, 24 Jul 2004 11:31:13 +0000 (GMT) Received: from helium.webpack.hosteurope.de (helium.webpack.hosteurope.de [217.115.142.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id D927D43D39 for ; Sat, 24 Jul 2004 11:31:12 +0000 (GMT) (envelope-from me@x3k6a2.net) Received: from pd9e46e1a.dip.t-dialin.net ([217.228.110.26] helo=x3k6a2) by helium.webpack.hosteurope.de with asmtp (Exim 4.34) id 1BoKkB-0007t7-QX for freebsd-stable@freebsd.org; Sat, 24 Jul 2004 13:31:12 +0200 Date: Sat, 24 Jul 2004 13:31:10 +0200 From: Sebastian Steenbuck X-Mailer: The Bat! (v1.53d) X-Priority: 3 (Normal) Message-ID: <75790734.20040724133110@x3k6a2.net> To: freebsd-stable@freebsd.org In-Reply-To: <004201c47150$1726aef0$7c00a8c0@amiel> References: <004201c47150$1726aef0$7c00a8c0@amiel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-HE-MXrcvd: no Subject: Re: permissions X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-stable@freebsd.org 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 11:31:13 -0000 > How can I make a directory permission so that > the user can write but cannot delete a file inside the directory? Another way is to set the setuid bit. (chmod 4000) See chmod (1) > 4000 (the setuid bit). Executable files with this bit set will > run with effective uid set to the uid of the file owner. > Directories with this bit set will force all files and sub- > directories created in them to be owned by the directory > owner and not by the uid of the creating process, if the > underlying file system supports this feature mfg Sebastian Steenbuck