updated admin group for linux servers
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user