[linux-cifs-client] Win2003 Share on 2.6.17 linux

freeswan9 freeswan9 at yahoo.fr
Mon Jul 3 19:39:05 GMT 2006


Hi,

I have been trying for hours to mount a Directory on a Win2003 Server without 
any success. Google didn't help me a lot...
The kernel is a brand new 2.6.17 downloaded yesterday. CIFS is compiled as a 
module and every option has been activated in menuconfig.
Distrib is Mandrake 10.0 Official

### WITH smbclient ###
- smbclient works fine and lists all the directories on the 2003 Server
 We even see SMB signatures when debug is set to 10 :

root at linux-host>smbclient3  -L //pc8000 -U user  -d 10 & /tmp/smbclient.txt
(...)
[060] 00 20 00 35 00 2E 00 32  00 00 00                 . .5...2 ...
Mandatory SMB signing enabled!
SMB signing enabled!
cli_simple_set_signing: user_session_key
(...)
get_sequence_for_reply: found seq = 3 mid = 5
simple_packet_signature: sequence number 3
client_check_incoming_message: seq 3: got good SMB signature of
[000] 83 75 48 5D 3B 59 46 98 
(...)


### WITH smbfs ###
- But no way to mount it with mount -t smbfs :
 (...)
cli_negprot: SMB signing is mandatory and we have disabled it.
2877: protocol negotiation failed
SMB connection failed

???

### WITH cifs ###
- When we try cifs :
mount.cifs3 //pc8000/ /mnt_pnt  -o 
user=user,passwd=123456,domain=XXX,ro,uid=userHere,gid=mygroup,sec=ntlmv2i

syslog says :
kernel:  fs/cifs/cifsfs.c: Devname: //pc8000/ flags: 65
kernel:  fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 10 with uid: 0
kernel:  fs/cifs/connect.c: Domain name set
kernel:  fs/cifs/connect.c: Username: ftmaster
kernel:  fs/cifs/connect.c: UNC: \\pc8000\ ip: 192.x.y.z
kernel:  fs/cifs/connect.c: Socket created
kernel:  fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffff
kernel:  fs/cifs/connect.c: Demultiplex PID: 2880
 kernel:  fs/cifs/connect.c: Existing smb sess not found
kernel:  fs/cifs/transport.c: For smb_command 114
 kernel:  fs/cifs/transport.c: Sending smb of length 47
 kernel:  fs/cifs/connect.c: rfc1002 length 0xb1)
 kernel:  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
 kernel:  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
 kernel:  fs/cifs/asn1.c: OID len = 8 oid = 0x1 0x2 0x348 0x1bb92
 kernel:  fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
 kernel:  fs/cifs/asn1.c: Need to call asn1_octets_decode() function for this  
kernel:  fs/cifs/connect.c: No session or bad tcon
 kernel:  fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 10) rc = -95
 kernel:  CIFS VFS: cifs_mount failed w/return code = -95

And stderr (or stdout) says:
mount error 95 = Operation not supported
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

/proc/fs/cifs settings :
==> /proc/fs/cifs/DebugData <==
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 1.43
Active VFS Requests: 0
Servers:
Shares:

==> /proc/fs/cifs/Experimental <==
2

==> /proc/fs/cifs/ExtendedSecurity <==
1

==> /proc/fs/cifs/LinuxExtensionsEnabled <==
1

==> /proc/fs/cifs/LookupCacheEnabled <==
1

==> /proc/fs/cifs/MultiuserMount <==
0

==> /proc/fs/cifs/NTLMV2Enabled <==
1

==> /proc/fs/cifs/OplockEnabled <==
1

==> /proc/fs/cifs/PacketSigningEnabled <==
1

==> /proc/fs/cifs/Stats <==
CIFS Session: 0
Share (unique mount targets): 0
SMB Request/Response Buffer: 0 Pool size: 4
SMB Small Req/Resp Buffer: 0 Pool size: 30
Total Large 22 Small 11 Allocations
Operations (MIDs): 0

0 session 0 share reconnects
Total vfs operations: 11 maximum at one time: 1


==> /proc/fs/cifs/cifsFYI <==
1

==> /proc/fs/cifs/traceSMB <==
0


PLEEEAAASE I need help !! I can't study cifs code...

I even tried with the latest mount.cifs 1.7 from http://linux-cifs.samba.org/



More information about the linux-cifs-client mailing list