Skip to content

Instantly share code, notes, and snippets.

@cagataycali
Forked from vincent-dm/gist:211f90e4abc547282b7c
Created November 22, 2016 17:12
Show Gist options
  • Save cagataycali/3b98aca36a6b3630e5cd36e23e096a30 to your computer and use it in GitHub Desktop.
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
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
@tufand
Copy link

tufand commented May 10, 2018

Hi, greeat post ! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment