Image

Imagepkbarbiedoll wrote in Imagelinux

I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.
//server/share                   /mnt/mycooldir         cifs    credentials=/etc/credfile,dom=mydomain,uid=123,gid=123,file_mode=0666,dir_mode=0755 0 0 
credfile:

Code:
username=foobar
password=1234  (ends here no line return after '4')


Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system.

Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect"

Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice.

What is baffling is I can successfully mount //server/share via command line:

Code:
mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234


The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.

I'm at a loss. Help?