Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
omi and omiusers group setup (#1558)
Browse files Browse the repository at this point in the history
* 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 7365aeb.
  • Loading branch information
NarineM authored Mar 11, 2024
1 parent f662b0a commit a204816
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions installer/datafiles/linux.data
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a204816

Please sign in to comment.