Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. # Make Mounted Directories
  2. mkdir drivepool
  3. mkdir docker_configs
  4.  
  5. # Install CIFS Utilities
  6. sudo apt-get install cifs-utils
  7.  
  8. # Create Credentials File
  9. nano ~/.smbcredentials
  10. username=msusername
  11. password=mspassword
  12. Ctrl+O (Save)
  13. Ctrl+X (Exit)
  14.  
  15. # Change Permissions
  16. chmod 600 ~/.smbcredentials
  17.  
  18. # Open fstab file and add two lines at bottom
  19. nano /etc/fstab
  20. //TGOD-SERVER/DrivePool /home/tejasgadhia/drivepool cifs credentials=/home/tejasgadhia/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
  21. //TGOD-SERVER/docker_configs /home/tejasgadhia/docker_configs cifs credentials=/home/tejasgadhia/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
  22. Ctrl+O (Save)
  23. Ctrl+X (Exit)
  24.  
  25. # Initiate Mounting
  26. sudo mount -a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement