Create a file called
.credentials or the like in your home folder. In this folder, you're going to put this:
substitute your own variables of course.
From here, you're going to want to install cifs-utils:
sudo apt-get install cifs-utils
Then once that's done, you should be able to mount your SMB/Windows Share like so:
And to make sure that sticks, you're going to put this entry in your
/etc/fstab file (You'll probably want to put it at the bottom) to match:
//<host>/Downloads /mnt/downloads cifs uid=1000,gid=1000,credentials=/home/<your home user>/.credentials,rw,vers=3.0
You should be able to reboot to test the mount, but you should now be able to
ls -al /mnt/Downloads (in my example) and see the files in your Shared Downloads folder!
If you have containers that lock the drive and fail to unlock, you can deny the granting of opportunistic locks by setting the following registry entry:
net use Z: \\host\Downloads
Created: May 2, 2019