Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 62477 invoked from network); 6 Nov 2009 19:16:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 19:16:56 -0000 Received: (qmail 18490 invoked by uid 500); 6 Nov 2009 19:16:56 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 18438 invoked by uid 500); 6 Nov 2009 19:16:56 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 18427 invoked by uid 99); 6 Nov 2009 19:16:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 19:16:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 19:16:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6577234C4A8 for ; Fri, 6 Nov 2009 11:16:32 -0800 (PST) Message-ID: <173481549.1257534992811.JavaMail.jira@brutus> Date: Fri, 6 Nov 2009 19:16:32 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-753) HDFS allows delete of read only files and directories In-Reply-To: <348648448.1257443852420.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774378#action_12774378 ] Tsz Wo (Nicholas), SZE commented on HDFS-753: --------------------------------------------- > isn't it the case that we need write access to a directory D to be able to delete a file/dir inside D? ... That is true. Deleting a file/directory requires the w permission on the parent directory (and, of course, x on the path). The file/directory's permission setting is irrelevant. > HDFS allows delete of read only files and directories > ----------------------------------------------------- > > Key: HDFS-753 > URL: https://issues.apache.org/jira/browse/HDFS-753 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.20.1 > Reporter: Dain Sundstrom > Assignee: Sanjay Radia > > Add a file or directory to HDFS, and chmod it to be read only. Then execute a delete and the file will be deleted. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.