Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 53305 invoked from network); 5 Nov 2009 18:01:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 18:01:57 -0000 Received: (qmail 48193 invoked by uid 500); 5 Nov 2009 18:01:56 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 48125 invoked by uid 500); 5 Nov 2009 18:01: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 48105 invoked by uid 99); 5 Nov 2009 18:01:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 18:01: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; Thu, 05 Nov 2009 18:01:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60716234C1EF for ; Thu, 5 Nov 2009 10:01:33 -0800 (PST) Message-ID: <630835069.1257444093393.JavaMail.jira@brutus> Date: Thu, 5 Nov 2009 18:01:33 +0000 (UTC) From: "Allen Wittenauer (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=12774004#action_12774004 ] Allen Wittenauer commented on HDFS-753: --------------------------------------- I played around with this at the UNIX level. Looks like we're not following POSIX here: $ mkdir k $ touch k/j $ chown -R -w k $ ls -al k dr-xr-xr-x 2 aw aw 3 Nov 5 09:59 ./ drwx------ 11 aw aw 25 Nov 5 09:58 ../ -r--r--r-- 1 aw aw 0 Nov 5 09:59 j $ rm k/j rm: k/j: override protection 444 (yes/no)? yes rm: k/j not removed: Permission denied Looking at truss output, it fails with EACCESS. > 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 > > 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.