Last active
March 14, 2019 06:52
-
-
Save kumbasar/f027e1367a8dce83b137e33f28e48a2b to your computer and use it in GitHub Desktop.
Mount an Active Directory in Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Reference: https://opensource.stanford.edu/mounting-active-directory-windows-cifs-file-share-ubuntu-linux