Skip to content

Instantly share code, notes, and snippets.

@kumbasar
Last active March 14, 2019 06:52
Show Gist options
  • Save kumbasar/f027e1367a8dce83b137e33f28e48a2b to your computer and use it in GitHub Desktop.
Save kumbasar/f027e1367a8dce83b137e33f28e48a2b to your computer and use it in GitHub Desktop.
Mount an Active Directory in Linux
ADUSER='<YOUR AD domain username>'
ADPASSWORD='<YOUR AD password>'
ADDOMAIN='<YOUR AD domain>'
AD='<AD PATH>'
sudo mount -t cifs -o user="${ADUSER}",password="${ADPASSWORD}",domain="${ADDOMAIN}" "${AD}" /mnt
# sudo umount /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment