Skip to content

Instantly share code, notes, and snippets.

@nzbart
Created January 21, 2020 20:26
Show Gist options
  • Save nzbart/6c0aabd21c237cc253056f65132d4fe1 to your computer and use it in GitHub Desktop.
Save nzbart/6c0aabd21c237cc253056f65132d4fe1 to your computer and use it in GitHub Desktop.
Join Ubuntu Server to Active Directory (AD) domain
#Optional steps:
#apt update && apt full-upgrade -y && apt auto-remove -y
#apt install -y vim-nox
apt install -y packagekit realmd
pam-auth-update --enable mkhomedir
echo '%domain\ [email protected] ALL=(ALL:ALL) ALL' > /etc/sudoers.d/example
realm join -v -U domain_admin_user_name example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment