hadoop user file permissions
<p>i have a problem in setting hadoop file permissions in hortonworks and cloudera.  </p>

<p>My requirement is:  </p>

<pre><code>1. create a new user with new group  
2. create user directory in hdfs ( ex. /user/myuser )  
3. Now this folder ( in this case /user/myuser ) must be accessible to only user and its group but not other users and other groups. 
</code></pre>

<p>Following commands are used by me. ( in centos 6) </p>

<p>1.create group >>> <code>groupadd mygroup</code><br>
2. create new user who belongs to new group  >>>>  <code>useradd -g mygroup myuser</code><br>
3. create user directory in hdfs  >>> <code>hadoop fs -mkdir /user/myuser</code><br>
4. changing ownership of the folder >>> <code>hadoop fs -chown -R myuser:mygroup /user/myuser</code><br>
5. giving permissions to user folder >>> <code>hadoop fs -chmod -R 700 /user/myuser</code><br>
6. i also changed the /tmp file permission to sticky bit. >>> <code>hadoop fs -chmod -R 1777 /tmp</code>  </p>

<p>Here the problem comes, even setting this permissions the other users in other groups are accessing my data. please tell me the solution for this. I turned on hdfs file permissions by setting ( dfs.permission.enabled=true ).</p>