From a20481631d3f67f999fb3381ee96a0b2e1739066 Mon Sep 17 00:00:00 2001 From: Narine Mossikyan Date: Mon, 11 Mar 2024 16:02:55 -0700 Subject: [PATCH] omi and omiusers group setup (#1558) * fix the logic of adding omsagent user to secondary group * remove omsagent user from primary group of omiusers during uninstall * Revert "remove omsagent user from primary group of omiusers during uninstall" This reverts commit 7365aeb072bab405d4d9cf7a0bc2ba14625cfd5f. --- installer/datafiles/linux.data | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/installer/datafiles/linux.data b/installer/datafiles/linux.data index 39cec5a14..b87d2c8f3 100644 --- a/installer/datafiles/linux.data +++ b/installer/datafiles/linux.data @@ -75,9 +75,8 @@ if [ $? -ne 0 ]; then fi # Ensure omsagent is in the omiusers group, but leave omsagent as a group -/usr/sbin/usermod -g omiusers omsagent 1> /dev/null 2> /dev/null # Ensure omsagent is in the omi group as well -/usr/sbin/usermod -g omi omsagent 1> /dev/null 2> /dev/null +/usr/sbin/usermod -g omiusers -a -G omi omsagent 1> /dev/null 2> /dev/null # Add the 'nxautomation' group if it does not already exist # (Can't use useradd with -U since that doesn't exist on older systems)