First we install the tools required.
sudo apt-get install cifs-utils
Next we prepare our folder path
mkdir /mnt/datasudo chown -R nobody:nogroup /mnt/datasudo chmod -R 0777 /mnt/data
Once done, to keep the folder persistent, we modify the file /etc/fstab
with the following.
//yourserver.com/FolderName /mnt/data cifs username=admin,password=password,uid=nobody,iocharset=utf8,noperm 0 0
Finally we mount the drive like this
sudo mount -a
Then you can see all your files in the folder /mnt/data
with the ls
command.