updated admin group for linux servers

This commit is contained in:
2021-12-12 12:14:48 -05:00
parent 4a291bb8be
commit 793c2f80eb

View File

@@ -44,7 +44,7 @@ sed --in-place 's/^fallback_homedir = \/home\/%u@%d/fallback_homedir = \/home\/%
# reboot sssd
systemctl restart sssd
# set the sudoers.d file for the domain admins
# set the sudoers.d file for the server admins
echo "## ${netbiosname} Admins ##" > /etc/sudoers.d/${netbiosname}
echo "# Allow members of ${netbiosname}\Domain Admins group sudo access" >> /etc/sudoers.d/${netbiosname}
echo "%Domain\ Admins ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/${netbiosname}
echo "# Allow members of ${netbiosname}\Server Admins group sudo access" >> /etc/sudoers.d/${netbiosname}
echo "%Server\ Admins ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/${netbiosname}