Hi all, I was wondering if anyone since Scientific Linux 5.3 has had a problem with mounting CIFS filesystem from both the CLI and /etc/fstab when using credential files? If I manually specify the password the FS works even when using the cred file to get the username.
This box I am using is running the latest kernel and patches to CIFS etc.: [r...@msn001 root]# uname -a Linux msn001.ansto.gov.au 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 00:57:09 EST 2010 x86_64 x86_64 x86_64 GNU/Linux [r...@msn001 root]# cat /etc/redhat-release Scientific Linux SL release 5.4 (Boron) I always get the error when trying to mount: On the CLI: [r...@msn001 root]# mount -t cifs //SERVERNAME/pet_data /petstore --verbose -o domain=ANSTO,credentials=/root/testPasswd mount.cifs kernel mount options: unc=//SERVERNAME\pet_data,ip=X.X.X.X,user=user,ver=1,rw,domain=ANSTO,credent ials=/root/testPasswd,pass=******** mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) In /var/log/messages: Jan 27 15:10:37 msn001 kernel: CIFS VFS: Send error in SessSetup = -13 Jan 27 15:10:37 msn001 kernel: CIFS VFS: cifs_mount failed w/return code = -13 Naturally if I try to mount the filesystem many times I lock out the account in our Active directory. The following line use to work before I was using / updated to Scientific Linux 5.3 I have since done the lame workaround of putting the username and password in /etc/fstab to make things for for my scientists who live in a Windows and Linux world ... //SERVERNAME/pet_data /petstore cifs defaults,user,uid=bla,gid=bla,mode=0775,domain=ANSTO,credentials=/root/.pet_ sci_user I did find this bug talked about in the Samba lists: http://lists.samba.org/archive/linux-cifs-client/2009-November/005402.html Has anyone got a better workaround / fix that putting the password in /etc/fstab? Thanks, -- Cooper Ry Lees HPC / UNIX Systems Administrator - Information Management Services (IMS) Australian Nuclear Science and Technology Organisation T +61 2 9717 3853 F +61 2 9717 9273 E [email protected] www.ansto.gov.au <http://www.ansto.gov.au> Important: This transmission is intended only for the use of the addressee. It is confidential and may contain privileged information or copyright material. If you are not the intended recipient, any use or further disclosure of this communication is strictly forbidden. If you have received this transmission in error, please notify me immediately by telephone and delete all copies of this transmission as well as any attachments.
