SHARE
TWEET

Untitled

a guest Jun 12th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo mkdir /mnt/azcloud001
  2. if [ ! -d "/etc/smbcredentials" ]; then
  3. sudo mkdir /etc/smbcredentials
  4. fi
  5. if [ ! -f "/etc/smbcredentials/azcloud001.cred" ]; then
  6.     sudo bash -c 'echo "username=azcloud001" >> /etc/smbcredentials/azcloud001.cred'
  7.     sudo bash -c 'echo "password=/EywCNIEFfDXtc7WQ8rrIMUGRJTbjrBJxU8Bc/Q6sikZUtqdZjWBM3n0M7+XHRSmtihOIJZ9WhAxHuDid5+wQQ==" >> /etc/smbcredentials/azcloud001.cred'
  8. fi
  9. sudo chmod 600 /etc/smbcredentials/azcloud001.cred
  10.  
  11. sudo bash -c 'echo "//azcloud001.file.core.windows.net/azcloud /mnt/azcloud001 cifs nofail,vers=3.0,credentials=/etc/smbcredentials/azcloud001.cred,dir_mode=0777,file_mode=0777,serverino" >> /etc/fstab'
  12. sudo mount -t cifs //azcloud001.file.core.windows.net/azcloud /mnt/azcloud001 -o vers=3.0,credentials=/etc/smbcredentials/azcloud001.cred,dir_mode=0777,file_mode=0777,serverino
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top