From 776e57f5104c175dd8267ca68f2c0567d8554fd3 Mon Sep 17 00:00:00 2001 From: Narine Mossikyan Date: Fri, 8 Mar 2024 11:13:47 -0800 Subject: [PATCH] Revert "remove omsagent user from primary group of omiusers during uninstall" This reverts commit 7365aeb072bab405d4d9cf7a0bc2ba14625cfd5f. --- installer/datafiles/linux.data | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/installer/datafiles/linux.data b/installer/datafiles/linux.data index 9a3ac9274..b87d2c8f3 100644 --- a/installer/datafiles/linux.data +++ b/installer/datafiles/linux.data @@ -74,8 +74,8 @@ if [ $? -ne 0 ]; then useradd -r -c "OMS agent" -d /var/opt/microsoft/omsagent/run -g omsagent -s /bin/bash omsagent fi -# Ensure omsagent is in the omiusers primary group, but leave omsagent as a group -# Ensure omsagent is in the omi secondary group as well +# Ensure omsagent is in the omiusers group, but leave omsagent as a group +# Ensure omsagent is in the omi group as well /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 @@ -170,10 +170,6 @@ if ${{PERFORMING_UPGRADE_NOT}}; then echo "Removing omsagent from the omi group ..." gpasswd -d omsagent omi - # Remove omsagent from the omiusers group - echo "Removing omsagent from the omiusers group ..." - gpasswd -d omsagent omiusers - # Remove the service accounts echo "Deleting nxautomation service account ..." userdel nxautomation 2> /dev/null