z-bb opened a new pull request, #4565:
URL: https://github.com/apache/ozone/pull/4565

   ## What changes were proposed in this pull request?
   Currently, there are admin users in the zone, which is a list of super read 
and super write users. As an administrator list, sometimes a only super read 
user list is also required
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-8413
   
   ## How was this patch tested?
   - unit test
   Existing test classes.
   
   - Functional test
   
   etc: ozone-site.xml (add)
   ```
   <property>
         <name>ozone.super.read.usernames</name>
         <value>bigdata_qa</value>
      </property>
   ```
   
   ```
   [hadoop@presto-test-006 ~]$ export HADOOP_USER_NAME=test
   [hadoop@presto-test-006 ~]$ om-current/bin/ozone sh key getacl 
vol-test/bucket-test/key-hosts-test8
   PERMISSION_DENIED User test doesn't have READ permission to access volume 
Volume:vol-test Bucket:bucket-test Key:key-hosts-test8
   
   [hadoop@presto-test-006 ~]$ export HADOOP_USER_NAME=bigdata_qa
   [hadoop@presto-test-006 ~]$ om-current/bin/ozone sh key getacl 
vol-test/bucket-test/key-hosts-test8
   [ {
     "type" : "USER",
     "name" : "hadoop",
     "aclScope" : "ACCESS",
     "aclList" : [ "ALL" ]
   } ]
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to