-
-
Save cagataycali/3b98aca36a6b3630e5cd36e23e096a30 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
Hi, greeat post ! thanks