[linux-cifs-client] Error mounting multiple Win2003 CIFS shares with different user credentials

David Harrison david.harrison at stress-free.co.nz
Fri May 21 06:58:28 GMT 2004


>  If you are using smbfs and it works, it is likely because it using a 
> distinct socket for each smbmnt (1 user per socket, two sockets 
> probably). It should be possible ala terminal server to make multiple 
> user connections over a single socket but the cifs code may have a bug 
> with this- checking for the value of the smb header vcnum may help get 
> to the bottom of this.

Sorry I forgot to mention I cannot connect to this Win2003 server with 
smbfs.
I get the following error following the mount command:

cli_negprot: SMB signing is mandatory and we have disabled it.
6705: protocol negotiation failed
SMB connection failed

>  I have not had much time to spend on the 2.4 code since the 2.6 code 
> has been keeping me busy. We badly need to do a wholesale backport of 
> the current 2.6 code to 2.4 so we can do simple diff/patch in the 
> future to keep the 2.4 code up to date with 2.6 fixes less painfully. 
> Fortunately all but four or five source files only have minor 
> differences between 2.4 and 2.6 so we may be able to do a copy of them 
> intact and then reintegrate the 2.4 specific work. There are only a 
> few such as cifsfs.c and file.c that have more significant differences 
> caused by the addition of 2.6 features and structure renames.

Reading this I downloaded a 2.6.5 kernel source and recompiled hoping 
maybe it was a problem with the 2.4 kernel.
CIFS shares work fine when connecting as a single user. When a second 
connection is attempted using different credentials the the problem 
persists. Here is what the syslog reads:

May 21 18:42:47 lisa kernel:  fs/cifs/cifsfs.c: Devname: 
//130.195.182.21/Projects flags: 64
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: CIFS VFS: in 
cifs_mount as Xid: 42 with uid: 0
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Entering cifs_mount. 
Xid: 42 with: 
unc=//130.195.182.21\Projects,ip=130.195.182.21,ver=1,....
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Domain name set
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Username: jacksoqu
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: UNC: 
\\130.195.182.21\Projects
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Existing tcp session 
with server found
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Existing smb sess not 
found
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Security Mode: 0xf 
Capabilities: 0x1f3fd Time Zone: 64816
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: In sesssetup
May 21 18:42:47 lisa kernel:  fs/cifs/transport.c: For smb_command 115
May 21 18:42:47 lisa kernel:  fs/cifs/transport.c: Sending smb of 
length 206
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Peek length rcvd: 36 
with smb length: 39
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c:  Mid 0x3b matched - 
waking up
May 21 18:42:47 lisa kernel:  fs/cifs/transport.c: Unexpected signature 
received from server
May 21 18:42:47 lisa kernel: Status code returned 0xc0000022 
NT_STATUS_ACCESS_DENIED
May 21 18:42:47 lisa kernel:  fs/cifs/netmisc.c:  !!Mapping smb error 
code 5 to POSIX err -13 !!
May 21 18:42:47 lisa kernel:  CIFS VFS: Send error in SessSetup = -13
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Reconnecting after 
unexpected rcvmsg error
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Reconnecting tcp 
session
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: State: 0x3 Flags: 0x0
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Post shutdown state: 
0x3 Flags: 0x0
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Socket created
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Error connecting to 
socket. -512
May 21 18:42:47 lisa kernel:  fs/cifs/connect.c: Socket created

The Socket created messages repeat for ever until all shares on that 
server are unmounted

Oh well, at least I am running a shiny new kernel  ;-)








More information about the linux-cifs-client mailing list