This is an automated email from the ASF dual-hosted git repository. dhavalshah9131 pushed a commit to branch ds_RANGER-5508 in repository https://gitbox.apache.org/repos/asf/ranger.git
commit e8681ab34b0e6e16a324b5babbb2ef5bc0077ac0 Author: dhavalshah9131 <[email protected]> AuthorDate: Mon Mar 9 13:44:55 2026 +0530 RANGER-5508 : fix Runtime.exec parameters --- .../org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java index 23fcb879a..d89d3f0f1 100644 --- a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java +++ b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java @@ -369,7 +369,7 @@ private void buildUnixUserList(String command) throws Throwable { // "id" is same across Linux / BSD / MacOSX // gids are used as id might return groups with spaces, ie "domain users" - Process process = Runtime.getRuntime().exec(new String[]{"bash", "-c", "id -G " + userName}); + Process process = Runtime.getRuntime().exec(new String[] {"id", "-G", userName}); try { reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
