Compare commits

...

2 Commits

View File

@@ -58,6 +58,12 @@ chmod 600 "/etc/sssd/conf.d/${netbiosname}.conf"
systemctl restart sssd
# set the sudoers.d file for the server admins
echo "## ${netbiosname} Admins ##" > /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}
cat << EOF > /etc/sudoers.d/${netbiosname}
## ${netbiosname} Admins ##
# Allow members of ${netbiosname}\Domain Admins group sudo access
%Domain\ Admins ALL=(ALL:ALL) ALL
# Allow members of ${netbiosname}\Server Admins group sudo access
%Server\ Admins ALL=(ALL:ALL) ALL
EOF