Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Base hdfs file system permissions i am unable to understand..

avatar
Expert Contributor

i have hdp sandbox 2.3..i login with user "sankar" and my hive warehouse directory having below file permission

hadoop fs -ls /apps/hive

drwxr-xr-x hive hdfs /apps/hive/warehouse

Here i see that owner having: rwx; group:r-x other: r-x permission

But while i login to sankar user i can easily put some data into that directory

i have attached below screen short

filesystem.png

Can any one explain this in my understanding way...please

1 ACCEPTED SOLUTION

avatar
@sankar rao

If you have enabled ranger plugin for hdfs then posix permission has no meaning.

Sandbox by default is configured to use ranger hdfs plugin having policy 'HDFS Global Allow' enabled which allow any user to have rwx permission. You can disable this from ranger.

View solution in original post

4 REPLIES 4

avatar
@sankar rao

If you have enabled ranger plugin for hdfs then posix permission has no meaning.

Sandbox by default is configured to use ranger hdfs plugin having policy 'HDFS Global Allow' enabled which allow any user to have rwx permission. You can disable this from ranger.

avatar
Expert Contributor

Thank you rahul..how can i disable this from ranger? can you explain in wide?

avatar
Super Guru

@sankar rao

Can you please check the value of dfs.permissions.enabled in your hdfs-site.xml? If this is false, permissions are not enforced.

avatar
Expert Contributor

thanks you guys ..i will check it let you know..