hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-753) HDFS allows delete of read only files and directories
Date Thu, 05 Nov 2009 18:01:33 GMT

    [ 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.


Mime
View raw message