I have one server that is mounting with fstab using a credentials file. The credentials file (.Smbcredentials) code is :
username=my_windows_login
password=my_password
domain=my_domain
My code in fstab is:
//myshare/myfolder /mnt/backup cifs credentials=/home/mydirectory/.Smbcredentials
This works perfectly. However, when trying to duplicate this on another server (same version) I get
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I'm running as root, all the folder permissions are identical…..everything is identical. Yet I get error 13 on the new server only. What could be wrong?
Best Answer
You need to add 'users' into the fstab options: