hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhiraj Butala (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-6703) NFS: Files can be deleted from a read-only mount
Date Fri, 18 Jul 2014 04:25:05 GMT
Abhiraj Butala created HDFS-6703:

             Summary: NFS: Files can be deleted from a read-only mount
                 Key: HDFS-6703
                 URL: https://issues.apache.org/jira/browse/HDFS-6703
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: nfs
            Reporter: Abhiraj Butala


As reported by bigdatagroup <bigdatagroup@itecons.it> on hadoop-users mailing list:
We exported our distributed filesystem with the following configuration (Managed by Cloudera
Manager over CDH 5.0.1):

    <value> ro</value>

As you can see, we expect the exported FS to be read-only, but in fact we are able to delete
files and folders stored on it (where the user has the correct permissions), from  the client
machine that mounted the FS.
Other writing operations are correctly blocked.

Hadoop Version in use: 2.3.0+cdh5.0.1+567"

I was able to reproduce the issue on latest hadoop trunk. Though I could only delete files,
deleting directories were correctly blocked:

abutala@abutala-vBox:/mnt/hdfs$ mount | grep 127 on /mnt/hdfs type nfs (rw,vers=3,proto=tcp,nolock,addr=

abutala@abutala-vBox:/mnt/hdfs$ ls -lh
total 512
-rw-r--r-- 1 abutala supergroup  0 Jul 17 18:51 abc.txt
drwxr-xr-x 2 abutala supergroup 64 Jul 17 18:31 temp

abutala@abutala-vBox:/mnt/hdfs$ rm abc.txt

abutala@abutala-vBox:/mnt/hdfs$ ls

abutala@abutala-vBox:/mnt/hdfs$ rm -r temp
rm: cannot remove `temp': Permission denied

abutala@abutala-vBox:/mnt/hdfs$ ls


Contents of hdfs-site.xml:

        <value>localhost ro</value>


This message was sent by Atlassian JIRA

View raw message