Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Make Mounted Directories
- mkdir drivepool
- mkdir docker_configs
- # Install CIFS Utilities
- sudo apt-get install cifs-utils
- # Create Credentials File
- nano ~/.smbcredentials
- username=msusername
- password=mspassword
- Ctrl+O (Save)
- Ctrl+X (Exit)
- # Change Permissions
- chmod 600 ~/.smbcredentials
- # Open fstab file and add two lines at bottom
- nano /etc/fstab
- //TGOD-SERVER/DrivePool /home/tejasgadhia/drivepool cifs credentials=/home/tejasgadhia/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
- //TGOD-SERVER/docker_configs /home/tejasgadhia/docker_configs cifs credentials=/home/tejasgadhia/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
- Ctrl+O (Save)
- Ctrl+X (Exit)
- # Initiate Mounting
- sudo mount -a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement