Mounting two different shares on a Windows 2003 SP1 RC1 server with two different sets of credentials fails in CIFS as found in Fedora's 2.6.9-1.724_FC3 kernel. The second mount attempt fails. Unmounting the first share allows the second mount to succeed. I have no reason to believe the problem would be any different on vanilla WIN2003 but I mention SP1 RC1 for completeness. See the following output, which is followed by /var/log/messages output. [root@adlincli1 ~]# perl demo-bug Executing mount -t cifs //windc1/salesperson1 /tmp/salesperson1 -o user=salesperson1,pass=p@ssw0rd,domain=ad Success Executing mount -t cifs //windc1/salesperson2 /tmp/salesperson2 -o user=salesperson2,pass=p@ssw0rd,domain=ad mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) Error, return code 65280 Executing umount /tmp/salesperson1 Success Executing mount -t cifs //windc1/salesperson2 /tmp/salesperson2 -o user=salesperson2,pass=p@ssw0rd,domain=ad Success Executing umount /tmp/salesperson2 Success * * * Feb 21 13:41:48 adlincli1 kernel: SELinux: initialized (dev cifs, type cifs), uses genfs_contexts Feb 21 13:41:48 adlincli1 kernel: CIFS VFS: Send error in SessSetup = -13 Feb 21 13:41:48 adlincli1 kernel: CIFS VFS: cifs_mount failed w/return code = -13 Feb 21 13:41:49 adlincli1 kernel: SELinux: initialized (dev cifs, type cifs), uses genfs_contexts
Fixed in cifs vfs in cifs development tree (soon will be in 2.6.12-pre-mm tree). Patch can be seen at http://cifs.bkbits.net:8080/linux-2.5cifs/gnupatch@424e48c6f3M3fhXntOe7JN1XXP4uQA I will update the linux-cifs-client subversion tree later this weekend (and produce a replacement version of the fs/cifs directory on the Samba ftp download site). I expect this to make 2.6.12 kernel.