|
@@ -26,7 +26,9 @@ abstract public class ShellCommand {
|
|
|
/** a Unix command to get the current user's name */
|
|
|
public final static String USER_NAME_COMMAND = "whoami";
|
|
|
/** a Unix command to get the current user's groups list */
|
|
|
- public static final String GROUPS_COMMAND = "groups";
|
|
|
+ public static String[] getGROUPS_COMMAND() {
|
|
|
+ return new String[]{"bash", "-c", "groups"};
|
|
|
+ }
|
|
|
/** a Unix command to set permission */
|
|
|
public static final String SET_PERMISSION_COMMAND = "chmod";
|
|
|
/** a Unix command to set owner */
|