Mount network shares available in GNU/Linux using the 'file system table' (fstab):
Install cifs tooling: $ apt install -y cifs-utils
Create a mount-point directory: $ mkdir /mnt/<mount-point>
Create a credentials file and open it for editing:$ vim /etc/samba/credentials
Populate it with with the cifs credentials:
username=<username>
password=<password>
Make the credential file read only: $ chmod 700 /etc/samba/credentials
Open the mount definition file for editing: $ vim /etc/fstab
Append it with the a line defining the mount (settings):
//<192.168.1.100>/<share>/ /mnt/<mount-point> cifs user,sec=ntlm,credentials=/etc/samba/credentials 0 0
192.168.1.100- server's IP address or hostname.share- remote folder on the server (and possibly path to it).mount-point- local folder to mount to.cifs- share protocol to be used.user- allowing regular (non-root) users to mount.sec=ntlm- overriding regular security settings (using old protocols).ALTERNATIVELY (needs testing):
//<192.168.1.100>/<share>/ /mnt/<mount-point> cifs user,uid=<username>,credentials=/etc/samba/credentials 0 0
Mount the share to the mount-point: $ mount /mnt/<mount-point>
ALTERNATIVELY: Mount every share defined in fstab:
$ mount all