<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ACL On Group Level in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187904#M73420</link>
    <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/44156/mudassarlhr.html"&gt;Mudassar Hussain&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I see you are failing on the namenode.  Whats your cluster setup (node distribution)  single or multinode cluster ? Typical your user should have been created on the gateway node.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please revert&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 19:53:09 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-01-16T19:53:09Z</dc:date>
    <item>
      <title>ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187900#M73416</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;I have a group &lt;STRONG&gt;"Marketing"&lt;/STRONG&gt;  and it has 3 users &lt;BR /&gt;1. Mark1&lt;BR /&gt;2. Mark2&lt;BR /&gt;3. Mark3 &lt;BR /&gt;and other group is &lt;STRONG&gt;"Account"&lt;/STRONG&gt; and it has also 3 users &lt;BR /&gt;1. AC1&lt;BR /&gt;2. AC2&lt;BR /&gt;3. AC3&lt;BR /&gt;my questions are : &lt;BR /&gt;1. How i get the list of all user in any group ? I have tried below command it give me all users and all groups but not specifically.&lt;BR /&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;cat /etc/passwd | awk -F':' '{ print $1}' | xargs -n1 groups" &lt;/STRONG&gt;.&lt;BR /&gt;2. I want to set the ACL in such way, In first scenario, User &lt;STRONG&gt;"AC1"&lt;/STRONG&gt; (group: &lt;STRONG&gt;"Account"&lt;/STRONG&gt;)  will have the Right "Read/Write/Execute"  in Group &lt;STRONG&gt;"Marketing"&lt;/STRONG&gt;.&lt;BR /&gt;3. In second scenario, User &lt;STRONG&gt;Mark1&lt;/STRONG&gt; not able to copy the file into&lt;STRONG&gt; "Account" &lt;/STRONG&gt;user.&lt;BR /&gt;    Please guide me in details.&lt;BR /&gt;   NOTE : I have been using Amazon Machine.&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 19:19:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187900#M73416</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2018-01-12T19:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187901#M73417</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/44156/mudassarlhr.html"&gt;Mudassar Hussain&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Prerequisite for question 1,2 and 3 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am assuming you are creating the ACL's from scratch, below are steps to prepare the groups and users &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Create the 2 groups &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# groupadd Marketing
# groupadd Account &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Add the 3 users to &lt;STRONG&gt;Marketing&lt;/STRONG&gt; group &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# useradd -G  Marketing Mark1 
# useradd -G  Marketing Mark2
# useradd -G  Marketing Mark3 &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Add 3 users to &lt;STRONG&gt;Accounting&lt;/STRONG&gt; group &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# useradd -G Account AC1
# useradd -G Account AC2
# useradd -G Account AC3 &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Answer to question 1&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;There are 2 variations to get the all memebers of a group in linux the 2 versions of the command are below
grep 'Account' /etc/group
awk -F':' '/Marketing/{print $4}' /etc/group &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Expected output &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[root@nakuru ~]# grep 'Account' /etc/group
Account:x:1029:AC1,AC2,AC3
[root@nakuru ~]# awk -F':' '/Marketing/{print $4}' /etc/group
Mark1,Mark2,Mark3 &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;To enable ACL's in HDP you need to set the dfs.namenode.acls.enabled to true using Ambari in custom hdfs-site.xml which is the recommended way. And restart all stale service typicall HDFS,MapReduce,YARN,ATLAS in my case see attached screenshot &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Answer to question 2 &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; Task &lt;STRONG&gt;Set user "AC1" (group: "Account") to have "Read/Write/Execute" privilege in Group "Marketing".&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This will entail creating a file in hdfs with owner Mark1or 2 or 3 and group Marketing, as root switch to any user in group Marketing. First create a directory in hdfs and change the ownership to &lt;STRONG&gt;Mark1&lt;/STRONG&gt; and group &lt;STRONG&gt;Marketing &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;As hdfs user created the directory and change ownership and permission &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# su - hdfs [hdfs@nakuru ~]
$ hdfs dfs -mkdir -p /marketing/acldemo 
[hdfs@nakuru ~]$ hdfs dfs -chown -R Mark1:marketing /marketing/acldemo &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Validate the above commands were successful. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[hdfs@nakuru ~]$ hdfs dfs -ls /marketing 
Found 1 items drwxr-xr-x - Mark1 marketing 0 2018-01-12 21:54 /marketing/acldemo &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Get the current ACL &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[hdfs@nakuru ~]$ hdfs dfs -getfacl -R /marketing/acldemo 
# file: /marketing/acldemo 
# owner: Mark1 
# group: marketing 
user::rwx 
group::r-x 
other::r-x &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;I removed the &lt;STRONG&gt;r-x&lt;/STRONG&gt; for &lt;STRONG&gt;other &lt;/STRONG&gt;to be sure and revalidate note the others now had  no &lt;STRONG&gt;r-x&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[Mark1@nakuru ~]$ hdfs dfs -chmod 750 /marketing/acldemo 
[Mark1@nakuru ~]$ hdfs dfs -getfacl -R /marketing/acldemo 
# file: /marketing/acldemo 
# owner: Mark1 
# group: marketing 
user::rwx 
group::r-x 
other::--- &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Switch to user Mark1 create a local file and copy to &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;hdfs # su - Mark1 
[Mark1@nakuru ~]$ echo "This is Hussain testing ACL ser "AC1" (group: "Account") will have the Right Read/Write/Execute in Group "Marketing"" &amp;gt; test1.txt 
[Mark1@nakuru ~]$ ls -al -rw-r--r-- 1 Mark1 Marketing 113 Jan 12 21:51 test1.txt &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Copy the  above file to hdfs in previously created directory  and check that it was successfully copied to hdfs&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[Mark1@nakuru ~]$ hdfs dfs -put test1.txt /marketing/acldemo 
[Mark1@nakuru ~]$ hdfs dfs -ls /marketing/acldemo 
Found 1 items -rw-r--r-- 3 Mark1 marketing 113 2018-01-12 22:05 /marketing/acldemo/test1.txt &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Testing &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Switched to user AC1 in group Account to see if he could read the file, it failed that's normal &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[root@nakuru ~]# su AC1 
[AC1@nakuru root]$ hdfs dfs -cat /marketing/acldemo/test1.txt 
cat: Permission denied: user=AC1, access=EXECUTE, inode="/marketing/acldemo/test1.txt":Mark1:marketing:drwxr-x- &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Change the ACL for user &lt;STRONG&gt;AC1&lt;/STRONG&gt; of group &lt;STRONG&gt;Account&lt;/STRONG&gt; to have rwx  as you requested &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[Mark1@nakuru ~]$ hdfs dfs -setfacl -m user:AC1:rwx /marketing/acldemo &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Check the new ACL,note now the user ACI now has rwx on the file test1 &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[Mark1@nakuru ~]$ hdfs dfs -getfacl /marketing/acldemo/test1.txt 
# file: /marketing/acldemo/test1.txt 
# owner: Mark1 
# group: marketing 
user::rw- 
user:AC1:rwx 
group::r-- 
mask::rwx 
other::r-- &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Switch to user AC1 and test that user AC1 can now read the file. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[root@nakuru ~]# su AC1 
[AC1@nakuru root]$ hdfs dfs -cat /marketing/acldemo/test1.txt 
This is Hussain testing ACL ser AC1 (group: Account) will have the Right Read/Write/Execute in Group Marketing &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SUCCESS ! &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Answer to question 3 &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;User Mark1 of Marketing should not able to copy the file into "Account" user, create directory and change ownership to any user in &lt;STRONG&gt;Account&lt;/STRONG&gt; group&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[root@nakuru ~]# su - hdfs 
[hdfs@nakuru ~]$ hdfs dfs -mkdir -p /Account/acldemo2 
[hdfs@nakuru ~]$ hdfs dfs -chown AC1:Account /Account/acldemo2 &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Get the ACL of newly created directory, note the 3 octets (other is &lt;STRONG&gt;r-x&lt;/STRONG&gt;) &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[root@nakuru ~]# su AC1 
[AC1@nakuru root]$ hdfs dfs -getfacl /Account/acldemo2 
# file: /Account/acldemo2 
# owner: AC1 
# group: Account 
user::rwx 
group::r-x 
other::r-x &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Test with user Mark1 can't copy a file to the directory &lt;STRONG&gt;/Account/acldemo2  &lt;/STRONG&gt;from local &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[root@nakuru ~]# su - Mark1 
[Mark1@nakuru ~]$ hdfs dfs -put test1.txt /Account/acldemo2 
put: Permission denied: user=Mark1, access=WRITE, inode="/Account/acldemo2/test1.txt._COPYING_":AC1:Account:drwxr-xr-x &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;The above is quite straightforward Mark1 belongs to Marketing and doesn't have any permissions on this directory, I hope that's what you meant?  &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please if that answers your question then please Accept the answer by Clicking on Accept button below, That would be a great help to Community users to find a solution quickly for these kinds of ACL issues.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2018 05:57:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187901#M73417</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-01-13T05:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187902#M73418</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/44156/mudassarlhr.html"&gt;Mudassar Hussain&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Did it resolve your sitaution?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 06:56:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187902#M73418</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-01-15T06:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187903#M73419</link>
      <description>&lt;P&gt;Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271" target="_blank"&gt;@Geoffrey Shelton Okot&lt;/A&gt; for your brief answer. Sorry for late reply!&lt;BR /&gt;I am unable to see the All user of the Group. please see the attache image : &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="51391-group.jpg" style="width: 599px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18689iBFC19BA22F831394/image-size/medium?v=v2&amp;amp;px=400" role="button" title="51391-group.jpg" alt="51391-group.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:58:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187903#M73419</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2019-08-18T07:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187904#M73420</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/44156/mudassarlhr.html"&gt;Mudassar Hussain&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I see you are failing on the namenode.  Whats your cluster setup (node distribution)  single or multinode cluster ? Typical your user should have been created on the gateway node.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please revert&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 19:53:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187904#M73420</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-01-16T19:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187905#M73421</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;P&gt;I have been using amazon machine. node detail : &lt;BR /&gt;1. ResourceManager&lt;BR /&gt;2. HiveServer&lt;BR /&gt;3. ResourceManager&lt;BR /&gt;4. Node2&lt;BR /&gt;5. Node1 ( I have added this node into cluster) &lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 19:57:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187905#M73421</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2018-01-16T19:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187906#M73422</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/44156/mudassarlhr.html"&gt;Mudassar Hussain&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do you plan to have Resource Manager HA only and not a Namenode HA?  How many physical servers in AWS do you plan to deploy?  Here is a typical setup looks like this &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1.Gateway aka edge node &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2.Master nodes best is more than one for NN HA and RM HA etc &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3.Slave node aka data nodes (As many as possible) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Are you using a blueprint to deploy in AWS? &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 21:01:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187906#M73422</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-01-16T21:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187907#M73423</link>
      <description>&lt;P&gt;Currently "Resource Manager High Availability" just on ResourceManager.I can add AdditionalResourceManager on "NameNode" &lt;/P&gt;&lt;P&gt;Everything set already on AWS machine. I am using it for exam learning.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 21:30:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187907#M73423</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2018-01-16T21:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: ACL On Group Level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187908#M73424</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/44156/mudassarlhr.html"&gt;Mudassar Hussain&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ok good go ahead and do the setup and most probably we could do a remote session to check the ACL stuff.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please keep me posted.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 21:34:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACL-On-Group-Level/m-p/187908#M73424</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-01-16T21:34:50Z</dc:date>
    </item>
  </channel>
</rss>

