Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 29 Mar 2001 21:35:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 29 Mar 2001 21:35:04 -0500 Received: from monza.monza.org ([209.102.105.34]:47378 "EHLO monza.monza.org") by vger.kernel.org with ESMTP id ; Thu, 29 Mar 2001 21:35:02 -0500 Date: Thu, 29 Mar 2001 18:34:04 -0800 From: Tim Wright To: Justin Carlson Cc: Xavier Ordoquy , linux-kernel@vger.kernel.org Subject: Re: Bug in the file attributes ? Message-ID: <20010329183404.B4053@kochanski> Reply-To: timw@splhi.com Mail-Followup-To: Justin Carlson , Xavier Ordoquy , linux-kernel@vger.kernel.org In-Reply-To: <0103291053110G.04063@plugh.sibyte.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <0103291053110G.04063@plugh.sibyte.com>; from carlson@sibyte.com on Thu, Mar 29, 2001 at 10:51:18AM -0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 29, 2001 at 10:51:18AM -0800, Justin Carlson wrote: > You don't need write perms on a file to remove it, you need write perms on the > directory. If you've got write permissions on the directory, you can remove > any file in the directory, regardless of the permissions. > > -Justin Except when the "sticky" bit is set. This is useful for shared temporary directories. Files can be created by anyone, but they can only be unlinked by the owner or by the superuser. Take a look at the permissions of /var/tmp. Tim -- Tim Wright - timw@splhi.com or timw@aracnet.com or twright@us.ibm.com IBM Linux Technology Center, Beaverton, Oregon Interested in Linux scalability ? Look at http://lse.sourceforge.net/ "Nobody ever said I was charming, they said "Rimmer, you're a git!"" RD VI - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/