etc/fstab
//ip/share /media/asustor_share cifs credentials=/home/andy/.smbcredentials,iocharset=utf8,sec=ntlm,noauto,user 0 0
user= allow user to mount smb...
subl ~/.smbcredentials
username=msusername
password=mspassword
chmod 600 .smbcredentials
source: https://wiki.ubuntu.com/MountWindowsSharesPermanently