If you want to mount share files using samba but you don’t want to put the username or password on fstab file, you could use an external file, this is useful if you want to increase a little security since fstab usually is world readable.
# insecure and common usage
//share/dir /mnt/myshare cifs username=user,password=pass
# more secure usage
chmod 0700 /path/securedir
chown root /path/securedir
//share/dir /mt/myshare cifs credentials=/path/securedir/fileshare
As you can see, it’s easy and increase a little security if more users can access in you machine.
of course you can use smbmount too:
smbmount //share/dir /mnt/myshare -o credentials=/path/securedir/fileshare