Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

On HDFS dfs.permissions.enabled is set to true. but it is not working, all user are having full access over hdfs.

On HDFS dfs.permissions.enabled is set to true. but it is not working, all user are having full access over hdfs.

New Contributor

Hi Everyone,

I'm using Hortonworks Sandbox over VMware.

This is scenerio -:

i have created /project folder through hdfs user and as you can see i have changed /project permission to 400 means only hdfs user can read contain under project folder. I have created one test.txt file under /project.

hdfs@sandbox-hdp ~]$ hdfs dfs -ls /

Found 13 items

drwxrwxrwx - yarn hadoop 0 2018-02-01 10:46 /app-logs

drwxr-xr-x - hdfs hdfs 0 2018-02-01 10:32 /apps

drwxr-xr-x - yarn hadoop 0 2018-02-01 10:24 /ats

drwxr-xr-x - hdfs hdfs 0 2018-02-01 10:39 /demo

drwxr-xr-x - hdfs hdfs 0 2018-02-01 10:24 /hdp

drwx------ - livy hdfs 0 2018-02-01 10:27 /livy2-recovery

drwxr-xr-x - mapred hdfs 0 2018-02-01 10:24 /mapred

drwxrwxrwx - mapred hadoop 0 2018-02-01 10:25 /mr-history

dr-------- - hdfs hdfs 0 2019-05-18 07:29 /project

[hdfs@sandbox-hdp ~]$ hdfs dfs -ls /project

Found 1 items

-r-------- 1 hdfs hdfs 19 2019-05-18 07:29 /project/test.txt


See now moin is user which i have created. moin is not having any permission over /project/test.txt. but still i'm able to view that files without getting permission denied error, this is very weird. please look into this as i have spend my 2+hrs on finding the solution and still i did not got any so finally posting this error.

Appreciate for solution on this.

Thanks in advanced ...

[moin@sandbox-hdp ~]$ hdfs dfs -ls /project

Found 1 items

-r-------- 1 hdfs hdfs 19 2019-05-18 07:29 /project/test.txt

[moin@sandbox-hdp ~]$ hdfs dfs -cat /project/test.txt

Hi my name is moin



Below is the Version i'm using-:

Ambari-: Version 2.6.1.0

HDFS 2.7.3

[root@sandbox-hdp ~]# hadoop version

Hadoop 2.7.3.2.6.4.0-91


108794-dfspermission.png