Last active
November 22, 2016 17:12
-
-
Save vincent-dm/211f90e4abc547282b7c to your computer and use it in GitHub Desktop.
How to add Azure File Service storage as an SMB mount in Ubuntu Linux
This file contains 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
sudo mkdir /shared | |
sudo mkdir /shared/folder | |
sudo chown ubuntuusername:ubuntuusername /shared/folder | |
touch ~/.credentials | |
echo "username=storageaccountname" | sudo tee ~/.credentials | |
echo "password=azureaccesskey" | sudo tee ~/.credentials | |
chmod 600 ~/.credentials | |
echo "" | sudo tee -a /etc/fstab | |
echo "//storageaccountname.file.core.windows.net/filesharename /shared/folder cifs vers=2.1,credentials=/home/username/.credentials 0 0" | sudo tee -a /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment