Compare commits
2 Commits
bd4875a906
...
60aced6ba1
| Author | SHA1 | Date | |
|---|---|---|---|
| 60aced6ba1 | |||
| 9475606375 |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user