natural commented on a change in pull request #4003: NIFI-7051 Protect against 
empty group membership in ShellUserGroupPro…
URL: https://github.com/apache/nifi/pull/4003#discussion_r369751997
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-shell-authorizer/src/main/java/org/apache/nifi/authorization/NssShellCommands.java
 ##########
 @@ -85,6 +85,6 @@ public String getGroupById(String groupId) {
      * @return Shell command string that will exit normally (0) on a suitable 
system.
      */
     public String getSystemCheck() {
-        return "getent passwd";
+        return "getent passwd | cut -f 1,3,4 -d ':'";
 
 Review comment:
   I'm not certain the system check needs a pipe and a cut, we're using that to 
determine if the host can provide `getent` and not any of the output.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to