You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Adarsh Sharma <ad...@orkash.com> on 2010/10/28 13:41:17 UTC
Granting Permissions to HDFS
Dear all,
I am listing all the HDFS delails through -fs shell. I know the
superuser owns the privileges to list files. But know I want to grant
all read and write privileges to two new users (for e. g Tom and White ) .
I read the HDFS Shell User guide that tells about *chmod, chown, chgrp*
commands.
But I don't want to change users and groups.
Can someone Please help me to achieve this or it is possible in HDFS or not.
Thanks and Regards
Adarsh Sharma
Re: Granting Permissions to HDFS
Posted by Hemanth Yamijala <yh...@gmail.com>.
Hi,
On Thu, Oct 28, 2010 at 5:11 PM, Adarsh Sharma <ad...@orkash.com> wrote:
> Dear all,
> I am listing all the HDFS delails through -fs shell. I know the superuser
> owns the privileges to list files. But know I want to grant all read and
> write privileges to two new users (for e. g Tom and White ) .
Only these two - or you don't really care about permissions ?
> I read the HDFS Shell User guide that tells about *chmod, chown, chgrp*
> commands.
> But I don't want to change users and groups.
> Can someone Please help me to achieve this or it is possible in HDFS or not.
If I guess right that you want to restrict access to super-user and
two other users alone, but not all users, there's probably no easy way
out other than creating a new group with those two users and giving
that group permissions. HDFS permissions aren't fine-grained like ACLs
which can grant access to specific users irrespective of their group
membership.
Thanks
Hemanth
>
> Thanks and Regards
> Adarsh Sharma
>