makeitrain.dk

by Thomas F. Christensen

Packages you need:
sudo apt install cifs-utils
sudo apt install smbclient

Manually mount to test if it is working:
Create a folder you can mount to
sudo mkdir /mnt/Share
sudo mount -t cifs -o username=administrator //192.168.1.4/Share /mnt/Share/

Run the following command to see if the share mounted:
mount -a

Auto mount SMB 3.0 share:
Create a file in /home/yourusername/
.smbcredentials
sudo nano /home/yourusername/.smbcredentials
and add the following
username=yoursharesusername
password=yoursharespassword

add the following to /etc/fstab

//remote_server_ip/Share /mnt/Share cifs credentials=/home/yourshareusername/.smbcredentials,iocharset=utf8,sec=ntlmv2,vers=3.0 0 0

now run the following command it should run without errors
mount -a

Thats it your done!

September 22nd, 2019

Posted In: Ubuntu, Uncategorized

Leave a Comment

(more…)

July 16th, 2017

Posted In: Ubuntu

Leave a Comment

(more…)

June 14th, 2017

Posted In: Ubuntu

Tags:

Leave a Comment