Skip to content

Commit

Permalink
Bugfix for domain admins file
Browse files Browse the repository at this point in the history
  • Loading branch information
zekiahmetbayar committed Feb 16, 2022
1 parent 20aa18a commit 64c33fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/local/bin/smb-create-domain
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ sed -i "s/#PermitRootLogin prohibit-password$/PermitRootLogin yes/g" /etc/ssh/ss
# Add domain admins group to sudoers
#grep -E \"%domain\x20admins\\s+ALL=(ALL)\\s+ALL\" /etc/sudoers.d/domainadmins || echo \"%domain\x20admins ALL=(ALL) ALL\" >> /etc/sudoers.d/domainadmins

echo \"%domain\x20admins ALL=\(ALL\) ALL\" >> /etc/sudoers.d/domainadmins
echo "%domain\x20admins ALL=\(ALL\) ALL" >> /etc/sudoers.d/domainadmins

# Restart services
systemctl restart sshd.service
Expand Down

0 comments on commit 64c33fa

Please sign in to comment.