Discussion:
mount.cifs failed with Mac OS X 10.7 (LION, Preview 4)
Kong
2011-06-13 19:32:32 UTC
Permalink
Server: Mac OS X 10.7 (LION, Preview 4)
Apple replaces samba with their own smbx which speaks SMB1 and SMB2.
[In an earlier post, I was wrong by stating Apple's smbx only speaks smb2.]

client: ubuntu 11.04 32-bit
I moved the original mount.cifs (version 4.5) to mount.cifs.old, and installed
mount.cifs version 5.0.

$ uname -r
2.6.38-8-generic
$ /sbin/mount.cifs -V
mount.cifs version: 5.0
$ /sbin/mount.cifs.old -V
mount.cifs version: 4.5

$ /sbin/mount.cifs -v -o user=administrator,pass=YYYY //192.168.77.244/Misc mnt
mount.cifs kernel mount options:
ip=192.168.77.244,unc=\\192.168.77.244\Misc,,ver=1,user=administrator,pass=****
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The debugging output ("echo 7 > /proc/fs/cifs/cifsFYI"):
[ 3770.285371] /build/buildd/linux-2.6.38/fs/cifs/cifsfs.c:
Devname: //192.168.77.244/Misc flags: 0
[ 3770.288473] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_mount as Xid: 136 with uid: 0
[ 3770.288501] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Username: administrator
[ 3770.288521] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
UNC:\\192.168.77.244\Misc ip: 192.168.77.244
[ 3770.288556] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Socket created
[ 3770.299030] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
[ 3770.308263] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_get_smb_ses as Xid: 137 with uid: 0
[ 3770.308283] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Existing smb sess not found
[ 3770.308308] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
secFlags 0x7
[ 3770.308328] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 114
[ 3770.308352] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 82
[ 3770.308592] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Demultiplex PID: 3241
[ 3770.309134] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x29
[ 3770.309188] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=114 mid=1 state=4
[ 3770.309246] Status code returned 0xc00000bb NT_STATUS_NOT_SUPPORTED
[ 3770.309295] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc00000bb to POSIX err -22
[ 3770.309324] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
negprot rc -22
[ 3770.309377] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_get_smb_ses (xid = 137) rc = -22
[ 3770.309412] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_mount (xid = 136) rc = -22
[ 3770.309422] CIFS VFS: cifs_mount failed w/return code = -22

The smbx on Mac logged the following:
192.168.77.244 SMB client not supported - Unicode, NT Errors, Long names and
Extended Security are required

$ /sbin/mount.cifs.old -v -o user=administrator,pass=YYYY
//192.168.77.244/Misc mnt
mount.cifs kernel mount options:
ip=192.168.77.244,unc=\\192.168.77.244\Misc,,ver=1,user=administrator,pass=****
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The debugging output ("echo 7 > /proc/fs/cifs/cifsFYI"):
[ 4121.323128] /build/buildd/linux-2.6.38/fs/cifs/cifsfs.c:
Devname://192.168.77.244/Misc/ flags: 64
[ 4121.325289] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_mount as Xid: 138 with uid: 0
[ 4121.325302] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Username: administrator
[ 4121.325307] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
UNC:\\192.168.77.244\Misc ip: 192.168.77.244
[ 4121.325329] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Socket created
[ 4121.326135] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
[ 4121.326236] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_get_smb_ses as Xid: 139 with uid: 0
[ 4121.326240] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Existing smb sess not found
[ 4121.326252] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
secFlags 0x7
[ 4121.326261] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 114
[ 4121.326265] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 82
[ 4121.326384] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Demultiplex PID: 3333
[ 4121.327110] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x29
[ 4121.327180] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result:cmd=114 mid=1 state=4
[ 4121.327186] Status code returned 0xc00000bb NT_STATUS_NOT_SUPPORTED
[ 4121.327191] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc00000bb to POSIX err -22
[ 4121.327202] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
negprot rc -22
[ 4121.327209] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_get_smb_ses (xid = 139) rc = -22
[ 4121.327220] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_mount (xid = 138) rc = -22
[ 4121.327225] CIFS VFS: cifs_mount failed w/return code = -22

The smbx on Mac logged the following:
192.168.77.244 SMB client not supported - Unicode, NT Errors, Long names and
Extended Security are required


* I can mount a share on the same mac from Win2003 or Win2008 client.
* the same command works with prior version of Mac OS X (which uses Samba).

Any suggestions?

Thanks.

Kong
Steve French
2011-06-13 20:19:16 UTC
Permalink
Looks like a possible server bug (or configuration setting). Very odd=
for
server to require extended security but not require kerberos.

In any case - does mounting with "sec=3Dntlmssp" work?
Post by Kong
Server: Mac OS X 10.7 (LION, Preview 4)
Apple replaces samba with their own smbx which speaks SMB1 and SMB2.
[In an earlier post, I was wrong by stating Apple's smbx only speaks =
smb2.]
Post by Kong
client: ubuntu 11.04 32-bit
I moved the original mount.cifs (version 4.5) to mount.cifs.old, and =
installed
Post by Kong
mount.cifs version 5.0.
$ uname -r
2.6.38-8-generic
$ /sbin/mount.cifs -V
mount.cifs version: 5.0
$ /sbin/mount.cifs.old -V
mount.cifs version: 4.5
$ /sbin/mount.cifs -v -o user=3Dadministrator,pass=3DYYYY //192.168.7=
7.244/Misc mnt
Post by Kong
ip=3D192.168.77.244,unc=3D\\192.168.77.244\Misc,,ver=3D1,user=3Dadmin=
istrator,pass=3D****
Post by Kong
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Devname: //192.168.77.244/Misc flags: 0
CIFS VFS: in cifs_mount as Xid: 136 with uid: 0
Username: administrator
UNC:\\192.168.77.244\Misc ip: 192.168.77.244
Socket created
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
CIFS VFS: in cifs_get_smb_ses as Xid: 137 with uid: 0
Existing smb sess not found
secFlags 0x7
For smb_command 114
Sending smb: total_len 82
Demultiplex PID: 3241
rfc1002 length 0x29
sync_mid_result: cmd=3D114 mid=3D1 state=3D4
[ 3770.309246] Status code returned 0xc00000bb NT_STATUS_NOT_SUPPORTE=
D
Post by Kong
Mapping smb error code 0xc00000bb to POSIX err -22
negprot rc -22
CIFS VFS: leaving cifs_get_smb_ses (xid =3D 137) rc =3D -22
CIFS VFS: leaving cifs_mount (xid =3D 136) rc =3D -22
[ 3770.309422] CIFS VFS: cifs_mount failed w/return code =3D -22
192.168.77.244 SMB client not supported - Unicode, NT Errors, Long na=
mes and
Post by Kong
Extended Security are required
$ /sbin/mount.cifs.old -v -o user=3Dadministrator,pass=3DYYYY
//192.168.77.244/Misc mnt
ip=3D192.168.77.244,unc=3D\\192.168.77.244\Misc,,ver=3D1,user=3Dadmin=
istrator,pass=3D****
Post by Kong
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Devname://192.168.77.244/Misc/ flags: 64
CIFS VFS: in cifs_mount as Xid: 138 with uid: 0
Username: administrator
UNC:\\192.168.77.244\Misc ip: 192.168.77.244
Socket created
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
CIFS VFS: in cifs_get_smb_ses as Xid: 139 with uid: 0
Existing smb sess not found
secFlags 0x7
For smb_command 114
Sending smb: total_len 82
Demultiplex PID: 3333
rfc1002 length 0x29
sync_mid_result:cmd=3D114 mid=3D1 state=3D4
[ 4121.327186] Status code returned 0xc00000bb NT_STATUS_NOT_SUPPORTE=
D
Post by Kong
Mapping smb error code 0xc00000bb to POSIX err -22
negprot rc -22
CIFS VFS: leaving cifs_get_smb_ses (xid =3D 139) rc =3D -22
CIFS VFS: leaving cifs_mount (xid =3D 138) rc =3D -22
[ 4121.327225] CIFS VFS: cifs_mount failed w/return code =3D -22
192.168.77.244 SMB client not supported - Unicode, NT Errors, Long na=
mes and
Post by Kong
Extended Security are required
* I can mount a share on the same mac from Win2003 or Win2008 client.
* the same command works with prior version of Mac OS X (which uses S=
amba).
Post by Kong
Any suggestions?
Thanks.
Kong
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs"=
in
Post by Kong
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
--=20
Thanks,

Steve
Kong
2011-06-13 20:49:58 UTC
Permalink
No, mounting with "sec=ntlmssp" does not work.

$ sudo /sbin/mount.cifs -v -o user=administrator,pass='Upt1va2008!',sec=ntlmssp
//192.168.77.244/Misc mnt
mount.cifs kernel mount options:ip=192.168.77.244,
unc=\\192.168.77.244\Misc,sec=ntlmssp,ver=1,user=administrator,pass=********
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

debug output:
[ 9063.356223] /build/buildd/linux-2.6.38/fs/cifs/cifsfs.c:
Devname: //192.168.77.244/Misc flags: 0
[ 9063.358102] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_mount as Xid: 154 with uid: 0
[ 9063.358117] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Username: administrator
[ 9063.358122] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
UNC: \\192.168.77.244\Misc ip: 192.168.77.244
[ 9063.358142] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Socket created
[ 9063.370719] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
[ 9063.376125] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_get_smb_ses as Xid: 155 with uid: 0
[ 9063.376132] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Existing smb sess not found
[ 9063.376142] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
secFlags 0x80
[ 9063.376149] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
NTLMSSP only mechanism, enable extended security
[ 9063.376156] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 114
[ 9063.376160] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 82
[ 9063.376324] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Demultiplex PID: 4219
[ 9063.377010] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0xd9
[ 9063.377047] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=114 mid=1 state=4
[ 9063.377057] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
Dialect: 2
[ 9063.377065] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x2 0x348 0xbb92
[ 9063.377069] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
[ 9063.377073] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 6 oid = 0x1 0x2 0x2f0 0x2b
[ 9063.377077] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x3 0x6 0x1
[ 9063.377121] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 10 oid = 0x1 0x3 0x6 0x1
[ 9063.377126] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x3 0x5 0x1
[ 9063.377130] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x3 0x6 0x1
[ 9063.377134] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
Need to call asn1_octets_decode() function for
***@please_ignore
[ 9063.377138] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
Signing disabled
[ 9063.377148] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
negprot rc 0
[ 9063.377156] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0
[ 9063.377159] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
sess setup type 3
[ 9063.377165] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ntlmssp session setup phase 1
[ 9063.377171] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 115
[ 9063.377175] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 210
[ 9063.384412] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0xf8
[ 9063.384458] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=115 mid=2 state=4
[ 9063.384464] Status code returned 0xc0000016
NT_STATUS_MORE_PROCESSING_REQUIRED
[ 9063.384470] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc0000016 to POSIX err -5
[ 9063.384474] /build/buildd/linux-2.6.38/fs/cifs/misc.c:
Null buffer passed to cifs_small_buf_release
[ 9063.384481] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
Guest login
[ 9063.384485] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
UID = 4
[ 9063.384489] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
bleft 86
[ 9063.384494] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverOS=Darwin
[ 9063.384499] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverNOS=@(#)PROGRAM:smbd PROJECT:smbx-102
[ 9063.384503] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverDomain=
[ 9063.384507] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ssetup freeing small buf db8ab540
[ 9063.384513] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ntlmssp session setup phase 3
[ 9063.384681] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 115
[ 9063.384686] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 396
[ 9063.406617] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x86
[ 9063.406666] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=115 mid=3 state=4
[ 9063.406671] /build/buildd/linux-2.6.38/fs/cifs/misc.c:
Null buffer passed to cifs_small_buf_release
[ 9063.406677] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
UID = 4
[ 9063.406681] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
bleft 86
[ 9063.406687] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverOS=Darwin
[ 9063.406692] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverNOS=@(#)PROGRAM:smbd PROJECT:smbx-102
[ 9063.406696] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverDomain=
[ 9063.406700] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ssetup freeing small buf db8ab700
[ 9063.406707] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS Session Established successfully
[ 9063.406714] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_get_smb_ses (xid = 155) rc = 0
[ 9063.406719] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
file mode: 0x1ed dir mode: 0x1ed
[ 9063.406726] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_get_tcon as Xid: 156 with uid: 0
[ 9063.406738] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 117
[ 9063.406741] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 98
[ 9063.422924] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x42
[ 9063.422961] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=117 mid=4 state=4
[ 9063.422971] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
disk share connection
[ 9063.423017] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
nativeFileSystem=NTFS
[ 9063.423021] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Tcon flags: 0x0
[ 9063.423031] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_get_tcon (xid = 156) rc = 0
[ 9063.423035] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS Tcon rc = 0
[ 9063.423040] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In QFSDeviceInfo
[ 9063.423045] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[ 9063.423049] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 72
[ 9063.423473] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x44
[ 9063.423553] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=5 state=4
[ 9063.423567] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In QFSAttributeInfo
[ 9063.423572] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[ 9063.423576] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 72
[ 9063.424468] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x50
[ 9063.425066] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=6 state=4
[ 9063.425085] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In QFSUnixInfo
[ 9063.425092] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[ 9063.425096] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 72
[ 9063.426194] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x27
[ 9063.426204] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
invalid transact2 word count
[ 9063.426226] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=7 state=4
[ 9063.426239] Status code returned 0xc0000148 NT_STATUS_INVALID_LEVEL
[ 9063.426244] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc0000148 to POSIX err -95
[ 9063.426251] CIFS VFS: Send error in QFSUnixInfo = -95
[ 9063.426265] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_mount (xid = 154) rc = 0
[ 9063.426274] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
CIFS VFS: in cifs_root_iget as Xid: 157 with uid: 0
[ 9063.426278] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
Getting info on
[ 9063.426281] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In QPathInfo (Unix) the path
[ 9063.426287] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[ 9063.426290] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 78
[ 9063.426937] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x27
[ 9063.426944] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
invalid transact2 word count
[ 9063.426959] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=8 state=4
[ 9063.426963] Status code returned 0xc0000003 NT_STATUS_INVALID_INFO_CLASS
[ 9063.426968] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc0000003 to POSIX err -95
[ 9063.426980] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
Send error in QPathInfo = -95
[ 9063.426988] CIFS VFS: cifs_read_super: get root inode failed
[ 9063.426996] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
cifs_put_tcon: tc_count=1
[ 9063.426998]
[ 9063.427002] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_put_tcon as Xid: 158 with uid: 0
[ 9063.427022] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In tree disconnect
[ 9063.427027] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 113
[ 9063.427031] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 39
[ 9063.431190] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x27
[ 9063.431234] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=113 mid=9 state=4
[ 9063.431305] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
cifs_put_smb_ses: ses_count=1
[ 9063.431307]
[ 9063.431354] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_put_smb_ses as Xid: 159 with uid: 0
[ 9063.431360] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In SMBLogoff for session disconnect
[ 9063.431386] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 116
[ 9063.431390] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 43
[ 9063.431847] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x27
[ 9063.431865] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=116 mid=10 state=4

On the mac, smbx logged the following:
host77244\administrator connected to path /User/administrator/Misc

Thanks.

Kong
Steve French
2011-06-13 21:36:15 UTC
Permalink
No, mounting with "sec=3Dntlmssp" does not work.
Looks like it got much farther. Looks like some server problems here,
although with a trace it would be easier to verify for sure. For examp=
le
looks like the server is claiming Unix support, but rejecting QueryFSUn=
ixInfo,
and has a bug with QueryPathInfo processing (not sure which level but
probably one of the Unix/Posix info levels which start at 0x200).

Can you add "nounix" as well (not just sec=3Dntlmssp but "nounix,sec=3D=
ntlmssp"
in the mount options.
$ sudo /sbin/mount.cifs -v -o user=3Dadministrator,pass=3D'Upt1va2008=
!',sec=3Dntlmssp
//192.168.77.244/Misc mnt
mount.cifs kernel mount options:ip=3D192.168.77.244,
unc=3D\\192.168.77.244\Misc,sec=3Dntlmssp,ver=3D1,user=3Dadministrato=
r,pass=3D********
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Devname: //192.168.77.244/Misc flags: 0
CIFS VFS: in cifs_mount as Xid: 154 with uid: 0
Username: administrator
UNC: \\192.168.77.244\Misc ip: 192.168.77.244
Socket created
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
CIFS VFS: in cifs_get_smb_ses as Xid: 155 with uid: 0
Existing smb sess not found
secFlags 0x80
NTLMSSP only mechanism, enable extended security
For smb_command 114
Sending smb: total_len 82
Demultiplex PID: 4219
rfc1002 length 0xd9
sync_mid_result: cmd=3D114 mid=3D1 state=3D4
Dialect: 2
OID len =3D 7 oid =3D 0x1 0x2 0x348 0xbb92
OID len =3D 7 oid =3D 0x1 0x2 0x348 0x1bb92
OID len =3D 6 oid =3D 0x1 0x2 0x2f0 0x2b
OID len =3D 7 oid =3D 0x1 0x3 0x6 0x1
OID len =3D 10 oid =3D 0x1 0x3 0x6 0x1
OID len =3D 7 oid =3D 0x1 0x3 0x5 0x1
OID len =3D 7 oid =3D 0x1 0x3 0x6 0x1
Need to call asn1_octets_decode() function for
Signing disabled
negprot rc 0
Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0
sess setup type 3
ntlmssp session setup phase 1
For smb_command 115
Sending smb: total_len 210
rfc1002 length 0xf8
sync_mid_result: cmd=3D115 mid=3D2 state=3D4
[ 9063.384464] Status code returned 0xc0000016
=A0NT_STATUS_MORE_PROCESSING_REQUIRED
Mapping smb error code 0xc0000016 to POSIX err -5
Null buffer passed to cifs_small_buf_release
Guest login
UID =3D 4
bleft 86
serverOS=3DDarwin
serverDomain=3D
ssetup freeing small buf db8ab540
ntlmssp session setup phase 3
For smb_command 115
Sending smb: total_len 396
rfc1002 length 0x86
sync_mid_result: cmd=3D115 mid=3D3 state=3D4
Null buffer passed to cifs_small_buf_release
UID =3D 4
bleft 86
serverOS=3DDarwin
serverDomain=3D
ssetup freeing small buf db8ab700
CIFS Session Established successfully
CIFS VFS: leaving cifs_get_smb_ses (xid =3D 155) rc =3D 0
file mode: 0x1ed dir mode: 0x1ed
CIFS VFS: in cifs_get_tcon as Xid: 156 with uid: 0
For smb_command 117
Sending smb: total_len 98
rfc1002 length 0x42
sync_mid_result: cmd=3D117 mid=3D4 state=3D4
disk share connection
nativeFileSystem=3DNTFS
Tcon flags: 0x0
CIFS VFS: leaving cifs_get_tcon (xid =3D 156) rc =3D 0
CIFS Tcon rc =3D 0
In QFSDeviceInfo
For smb_command 50
Sending smb: total_len 72
rfc1002 length 0x44
sync_mid_result: cmd=3D50 mid=3D5 state=3D4
In QFSAttributeInfo
For smb_command 50
Sending smb: total_len 72
rfc1002 length 0x50
sync_mid_result: cmd=3D50 mid=3D6 state=3D4
In QFSUnixInfo
For smb_command 50
Sending smb: total_len 72
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=3D50 mid=3D7 state=3D4
[ 9063.426239] Status code returned 0xc0000148 NT_STATUS_INVALID_LEVE=
L
Mapping smb error code 0xc0000148 to POSIX err -95
[ 9063.426251] CIFS VFS: Send error in QFSUnixInfo =3D -95
CIFS VFS: leaving cifs_mount (xid =3D 154) rc =3D 0
CIFS VFS: in cifs_root_iget as Xid: 157 with uid: 0
Getting info on
In QPathInfo (Unix) the path
For smb_command 50
Sending smb: total_len 78
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=3D50 mid=3D8 state=3D4
[ 9063.426963] Status code returned 0xc0000003 NT_STATUS_INVALID_INFO=
_CLASS
Mapping smb error code 0xc0000003 to POSIX err -95
Send error in QPathInfo =3D -95
[ 9063.426988] CIFS VFS: cifs_read_super: get root inode failed
cifs_put_tcon: tc_count=3D1
[ 9063.426998]
CIFS VFS: in cifs_put_tcon as Xid: 158 with uid: 0
In tree disconnect
For smb_command 113
Sending smb: total_len 39
rfc1002 length 0x27
sync_mid_result: cmd=3D113 mid=3D9 state=3D4
cifs_put_smb_ses: ses_count=3D1
[ 9063.431307]
CIFS VFS: in cifs_put_smb_ses as Xid: 159 with uid: 0
In SMBLogoff for session disconnect
For smb_command 116
Sending smb: total_len 43
rfc1002 length 0x27
sync_mid_result: cmd=3D116 mid=3D10 state=3D4
host77244\administrator connected to path /User/administrator/Misc
Thanks.
Kong
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs"=
in
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
--=20
Thanks,

Steve
Kong
2011-06-13 22:16:12 UTC
Permalink
mounting with "nounix,sec=ntlmssp" works!
However, the 1st "ls" does not return anything back until the 2nd "ls" command.

Do you think there is server-side bug? (which would not be surprising
since 10.7 is still "preview")

$ /sbin/mount.cifs -v -o user=administrator,pass=YYY,nounix,sec=ntlmssp
//192.168.77.244/Misc mnt
mount.cifs kernel mount options: ip=192.168.77.244,unc=\\192.168.77.244\Misc,
nounix,sec=ntlmssp,ver=1,user=administrator,pass=********
$ ls mnt

$ ls mnt
me rockandroll test us you


debug output:
[14359.414853] /build/buildd/linux-2.6.38/fs/cifs/cifsfs.c:
Devname: //192.168.77.244/Misc flags: 0
[14359.416284] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_mount as Xid: 262 with uid: 0
[14359.416300] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Username: administrator
[14359.416306] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
UNC: \\192.168.77.244\Misc ip: 192.168.77.244
[14359.416328] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Socket created
[14359.416897] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
[14359.417936] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_get_smb_ses as Xid: 263 with uid: 0
[14359.417941] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Existing smb sess not found
[14359.417954] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
secFlags 0x80
[14359.417960] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
NTLMSSP only mechanism, enable extended security
[14359.417966] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 114
[14359.417970] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 82
[14359.418142] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Demultiplex PID: 5409
[14359.418644] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0xd9
[14359.418684] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=114 mid=1 state=4
[14359.418696] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
Dialect: 2
[14359.418705] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x2 0x348 0xbb92
[14359.418712] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
[14359.418718] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 6 oid = 0x1 0x2 0x2f0 0x2b
[14359.418724] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x3 0x6 0x1
[14359.418730] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 10 oid = 0x1 0x3 0x6 0x1
[14359.418736] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x3 0x5 0x1
[14359.418741] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
OID len = 7 oid = 0x1 0x3 0x6 0x1
[14359.418748] /build/buildd/linux-2.6.38/fs/cifs/asn1.c:
Need to call asn1_octets_decode() function for
***@please_ignore
[14359.418753] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
Signing disabled
[14359.418763] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
negprot rc 0
[14359.418772] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0
[14359.418778] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
sess setup type 3
[14359.418789] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ntlmssp session setup phase 1
[14359.418795] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 115
[14359.418798] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 210
[14359.460788] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0xf8
[14359.460825] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=115 mid=2 state=4
[14359.460831] Status code returned 0xc0000016
NT_STATUS_MORE_PROCESSING_REQUIRED
[14359.460837] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc0000016 to POSIX err -5
[14359.460841] /build/buildd/linux-2.6.38/fs/cifs/misc.c:
Null buffer passed to cifs_small_buf_release
[14359.460848] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
Guest login
[14359.460851] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
UID = 10
[14359.460855] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
bleft 86
[14359.460859] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverOS=Darwin
[14359.460865] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverNOS=@(#)PROGRAM:smbd PROJECT:smbx-102
[14359.460868] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverDomain=
[14359.460872] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ssetup freeing small buf db8ab8c0
[14359.460878] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ntlmssp session setup phase 3
[14359.460966] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 115
[14359.460970] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 396
[14359.486051] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x86
[14359.486150] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=115 mid=3 state=4
[14359.486164] /build/buildd/linux-2.6.38/fs/cifs/misc.c:
Null buffer passed to cifs_small_buf_release
[14359.486177] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
UID = 10
[14359.486186] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
bleft 86
[14359.486201] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverOS=Darwin
[14359.486216] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverNOS=@(#)PROGRAM:smbd PROJECT:smbx-102
[14359.486227] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
serverDomain=
[14359.486239] /build/buildd/linux-2.6.38/fs/cifs/sess.c:
ssetup freeing small buf db8ab700
[14359.486271] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS Session Established successfully
[14359.486290] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_get_smb_ses (xid = 263) rc = 0
[14359.486305] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
file mode: 0x1ed dir mode: 0x1ed
[14359.486322] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: in cifs_get_tcon as Xid: 264 with uid: 0
[14359.486349] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 117
[14359.486359] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 98
[14359.506870] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x42
[14359.506963] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=117 mid=4 state=4
[14359.507000] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
disk share connection
[14359.507017] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
nativeFileSystem=NTFS
[14359.507027] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Tcon flags: 0x0
[14359.507049] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_get_tcon (xid = 264) rc = 0
[14359.507059] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS Tcon rc = 0
[14359.507072] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In QFSDeviceInfo
[14359.507086] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[14359.507096] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 72
[14359.507878] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x44
[14359.507931] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=5 state=4
[14359.507972] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In QFSAttributeInfo
[14359.507986] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[14359.507996] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 72
[14359.510754] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x50
[14359.511016] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=6 state=4
[14359.511048] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
Linux protocol extensions disabled
[14359.511070] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
CIFS VFS: leaving cifs_mount (xid = 262) rc = 0
[14359.511100] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
CIFS VFS: in cifs_root_iget as Xid: 265 with uid: 0
[14359.511120] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
Getting info on
[14359.511143] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[14359.511153] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 78
[14359.512242] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x90
[14359.512302] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=7 state=4
[14359.512331] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
In GetSrvInodeNum for
[14359.512345] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[14359.512355] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 78
[14359.514976] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x48
[14359.515053] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=8 state=4
[14359.515081] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
looking for uniqueid=386428
[14359.515122] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
cifs_revalidate_cache: revalidating inode 386428
[14359.515135] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
cifs_revalidate_cache: inode 386428 is new
[14359.515149] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
inode 0xdbda7d74 old_time=0 new_time=3514878
[14359.515174] /build/buildd/linux-2.6.38/fs/cifs/cifsfs.c:
export ops supported
[14360.542214] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
CIFS VFS: in cifs_lookup as Xid: 266 with uid: 1000
[14360.542236] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
parent inode = 0xdbda7d74 name is: .Trash and dentry = 0xde2b7b80
[14360.542252] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
NULL inode in lookup
[14360.542263] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
Full path: \.Trash inode = 0x (null)
[14360.542275] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
Getting info on \.Trash
[14360.542298] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[14360.542308] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 92
[14360.552637] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x27
[14360.552671] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
invalid transact2 word count
[14360.558663] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=9 state=4
[14360.558680] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
[14360.558694] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc0000034 to POSIX err -2
[14360.558716] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
Send error in QPathInfo = -2
[14360.558745] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
CIFS VFS: leaving cifs_lookup (xid = 266) rc = 0
[14360.558956] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
CIFS VFS: in cifs_lookup as Xid: 267 with uid: 1000
[14360.558972] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
parent inode = 0xdbda7d74 name is: .Trash-1000 and dentry = 0xde2b7e00
[14360.558986] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
NULL inode in lookup
[14360.558997] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
Full path: \.Trash-1000 inode = 0x (null)
[14360.559008] /build/buildd/linux-2.6.38/fs/cifs/inode.c:
Getting info on \.Trash-1000
[14360.559025] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
For smb_command 50
[14360.559035] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
Sending smb: total_len 102
[14360.561562] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
rfc1002 length 0x27
[14360.561602] /build/buildd/linux-2.6.38/fs/cifs/connect.c:
invalid transact2 word count
[14360.561678] /build/buildd/linux-2.6.38/fs/cifs/transport.c:
sync_mid_result: cmd=50 mid=10 state=4
[14360.561692] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
[14360.561705] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c:
Mapping smb error code 0xc0000034 to POSIX err -2
[14360.561722] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c:
Send error in QPathInfo = -2
[14360.561743] /build/buildd/linux-2.6.38/fs/cifs/dir.c:
CIFS VFS: leaving cifs_lookup (xid = 267) rc = 0
Steve French
2011-06-13 22:29:27 UTC
Permalink
mounting with "nounix,sec=3Dntlmssp" works!
However, the 1st "ls" does not return anything back until the 2nd "ls=
" command.
Do you think there is server-side bug? (which would not be surprising
since 10.7 is still "preview")
Yes - probably, but hard to prove without a network trace of the
server responses
to the SMB Transaction2 FindFirst requests. I am a little puzzled why=
I don't
see the "In FindFirst" debug message in the log (is /proc/fs/cifs/cifsF=
YI set to
3 or preferably 7?).
$ /sbin/mount.cifs -v -o user=3Dadministrator,pass=3DYYY,nounix,sec=3D=
ntlmssp
//192.168.77.244/Misc mnt
mount.cifs kernel mount options: ip=3D192.168.77.244,unc=3D\\192.168.=
77.244\Misc,
nounix,sec=3Dntlmssp,ver=3D1,user=3Dadministrator,pass=3D********
$ ls mnt
$ ls mnt
me =A0rockandroll =A0test =A0us =A0you
Devname: //192.168.77.244/Misc flags: 0
CIFS VFS: in cifs_mount as Xid: 262 with uid: 0
Username: administrator
UNC: \\192.168.77.244\Misc ip: 192.168.77.244
Socket created
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
CIFS VFS: in cifs_get_smb_ses as Xid: 263 with uid: 0
Existing smb sess not found
secFlags 0x80
NTLMSSP only mechanism, enable extended security
For smb_command 114
Sending smb: =A0total_len 82
Demultiplex PID: 5409
rfc1002 length 0xd9
sync_mid_result: cmd=3D114 mid=3D1 state=3D4
Dialect: 2
OID len =3D 7 oid =3D 0x1 0x2 0x348 0xbb92
OID len =3D 7 oid =3D 0x1 0x2 0x348 0x1bb92
OID len =3D 6 oid =3D 0x1 0x2 0x2f0 0x2b
OID len =3D 7 oid =3D 0x1 0x3 0x6 0x1
OID len =3D 10 oid =3D 0x1 0x3 0x6 0x1
OID len =3D 7 oid =3D 0x1 0x3 0x5 0x1
OID len =3D 7 oid =3D 0x1 0x3 0x6 0x1
Need to call asn1_octets_decode() function for
Signing disabled
negprot rc 0
Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0
sess setup type 3
ntlmssp session setup phase 1
For smb_command 115
Sending smb: =A0total_len 210
rfc1002 length 0xf8
sync_mid_result: cmd=3D115 mid=3D2 state=3D4
[14359.460831] Status code returned 0xc0000016
NT_STATUS_MORE_PROCESSING_REQUIRED
Mapping smb error code 0xc0000016 to POSIX err -5
Null buffer passed to cifs_small_buf_release
Guest login
UID =3D 10
bleft 86
serverOS=3DDarwin
serverDomain=3D
ssetup freeing small buf db8ab8c0
ntlmssp session setup phase 3
For smb_command 115
Sending smb: =A0total_len 396
rfc1002 length 0x86
sync_mid_result: cmd=3D115 mid=3D3 state=3D4
Null buffer passed to cifs_small_buf_release
UID =3D 10
bleft 86
serverOS=3DDarwin
serverDomain=3D
ssetup freeing small buf db8ab700
CIFS Session Established successfully
CIFS VFS: leaving cifs_get_smb_ses (xid =3D 263) rc =3D 0
file mode: 0x1ed =A0dir mode: 0x1ed
CIFS VFS: in cifs_get_tcon as Xid: 264 with uid: 0
For smb_command 117
Sending smb: =A0total_len 98
rfc1002 length 0x42
sync_mid_result: cmd=3D117 mid=3D4 state=3D4
disk share connection
nativeFileSystem=3DNTFS
Tcon flags: 0x0
CIFS VFS: leaving cifs_get_tcon (xid =3D 264) rc =3D 0
CIFS Tcon rc =3D 0
In QFSDeviceInfo
For smb_command 50
Sending smb: =A0total_len 72
rfc1002 length 0x44
sync_mid_result: cmd=3D50 mid=3D5 state=3D4
In QFSAttributeInfo
For smb_command 50
Sending smb: =A0total_len 72
rfc1002 length 0x50
sync_mid_result: cmd=3D50 mid=3D6 state=3D4
Linux protocol extensions disabled
CIFS VFS: leaving cifs_mount (xid =3D 262) rc =3D 0
CIFS VFS: in cifs_root_iget as Xid: 265 with uid: 0
Getting info on
For smb_command 50
Sending smb: =A0total_len 78
rfc1002 length 0x90
sync_mid_result: cmd=3D50 mid=3D7 state=3D4
In GetSrvInodeNum for
For smb_command 50
Sending smb: =A0total_len 78
rfc1002 length 0x48
sync_mid_result: cmd=3D50 mid=3D8 state=3D4
looking for uniqueid=3D386428
cifs_revalidate_cache: revalidating inode 386428
cifs_revalidate_cache: inode 386428 is new
inode 0xdbda7d74 old_time=3D0 new_time=3D3514878
export ops supported
CIFS VFS: in cifs_lookup as Xid: 266 with uid: 1000
parent inode =3D 0xdbda7d74 name is: .Trash and dentry =3D 0xde2b7b80
NULL inode in lookup
Full path: \.Trash inode =3D 0x =A0(null)
Getting info on \.Trash
For smb_command 50
Sending smb: =A0total_len 92
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=3D50 mid=3D9 state=3D4
[14360.558680] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_=
NOT_FOUND
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo =3D -2
CIFS VFS: leaving cifs_lookup (xid =3D 266) rc =3D 0
CIFS VFS: in cifs_lookup as Xid: 267 with uid: 1000
parent inode =3D 0xdbda7d74 name is: .Trash-1000 and dentry =3D 0xde2=
b7e00
NULL inode in lookup
Full path: \.Trash-1000 inode =3D 0x =A0(null)
Getting info on \.Trash-1000
For smb_command 50
Sending smb: =A0total_len 102
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=3D50 mid=3D10 state=3D4
[14360.561692] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_=
NOT_FOUND
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo =3D -2
CIFS VFS: leaving cifs_lookup (xid =3D 267) rc =3D 0
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs"=
in
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
--=20
Thanks,

Steve
Kong Li
2011-06-13 23:27:51 UTC
Permalink
Hi Steve,

I have enclosed the trace from wireshark (running on mac).
/proc/fs/cifs/cifsFYI is set to 7.

$ cat /proc/fs/cifs/cifsFYI
7
$ sudo /sbin/mount.cifs -v -o
user=administrator,pass=YYY,nounix,sec=ntlmssp //192.168.77.244/Misc
mnt
mount.cifs kernel mount options:
ip=192.168.77.244,unc=\\192.168.77.244\Misc,nounix,sec=ntlmssp,ver=1,user=administrator,pass=********
$ ls mnt

g$ ls mnt
me rockandroll test us you
$

Any comment would be greatly appreciated.

Thanks again.

Kong
Post by Steve French
Post by Kong
mounting with "nounix,sec=ntlmssp" works!
However, the 1st "ls" does not return anything back until the 2nd "ls" command.
Do you think there is server-side bug? (which would not be surprising
since 10.7 is still "preview")
Yes - probably, but hard to prove without a network trace of the
server responses
to the SMB Transaction2 FindFirst requests.   I am a little puzzled why I don't
see the "In FindFirst" debug message in the log (is /proc/fs/cifs/cifsFYI set to
3 or preferably 7?).
Post by Kong
$ /sbin/mount.cifs -v -o user=administrator,pass=YYY,nounix,sec=ntlmssp
//192.168.77.244/Misc mnt
mount.cifs kernel mount options: ip=192.168.77.244,unc=\\192.168.77.244\Misc,
nounix,sec=ntlmssp,ver=1,user=administrator,pass=********
$ ls mnt
$ ls mnt
me  rockandroll  test  us  you
Devname: //192.168.77.244/Misc flags: 0
CIFS VFS: in cifs_mount as Xid: 262 with uid: 0
Username: administrator
UNC: \\192.168.77.244\Misc ip: 192.168.77.244
Socket created
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
CIFS VFS: in cifs_get_smb_ses as Xid: 263 with uid: 0
Existing smb sess not found
secFlags 0x80
NTLMSSP only mechanism, enable extended security
For smb_command 114
Sending smb:  total_len 82
Demultiplex PID: 5409
rfc1002 length 0xd9
sync_mid_result: cmd=114 mid=1 state=4
Dialect: 2
OID len = 7 oid = 0x1 0x2 0x348 0xbb92
OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
OID len = 6 oid = 0x1 0x2 0x2f0 0x2b
OID len = 7 oid = 0x1 0x3 0x6 0x1
OID len = 10 oid = 0x1 0x3 0x6 0x1
OID len = 7 oid = 0x1 0x3 0x5 0x1
OID len = 7 oid = 0x1 0x3 0x6 0x1
Need to call asn1_octets_decode() function for
Signing disabled
negprot rc 0
Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0
sess setup type 3
ntlmssp session setup phase 1
For smb_command 115
Sending smb:  total_len 210
rfc1002 length 0xf8
sync_mid_result: cmd=115 mid=2 state=4
[14359.460831] Status code returned 0xc0000016
NT_STATUS_MORE_PROCESSING_REQUIRED
Mapping smb error code 0xc0000016 to POSIX err -5
Null buffer passed to cifs_small_buf_release
Guest login
UID = 10
bleft 86
serverOS=Darwin
serverDomain=
ssetup freeing small buf db8ab8c0
ntlmssp session setup phase 3
For smb_command 115
Sending smb:  total_len 396
rfc1002 length 0x86
sync_mid_result: cmd=115 mid=3 state=4
Null buffer passed to cifs_small_buf_release
UID = 10
bleft 86
serverOS=Darwin
serverDomain=
ssetup freeing small buf db8ab700
CIFS Session Established successfully
CIFS VFS: leaving cifs_get_smb_ses (xid = 263) rc = 0
file mode: 0x1ed  dir mode: 0x1ed
CIFS VFS: in cifs_get_tcon as Xid: 264 with uid: 0
For smb_command 117
Sending smb:  total_len 98
rfc1002 length 0x42
sync_mid_result: cmd=117 mid=4 state=4
disk share connection
nativeFileSystem=NTFS
Tcon flags: 0x0
CIFS VFS: leaving cifs_get_tcon (xid = 264) rc = 0
CIFS Tcon rc = 0
In QFSDeviceInfo
For smb_command 50
Sending smb:  total_len 72
rfc1002 length 0x44
sync_mid_result: cmd=50 mid=5 state=4
In QFSAttributeInfo
For smb_command 50
Sending smb:  total_len 72
rfc1002 length 0x50
sync_mid_result: cmd=50 mid=6 state=4
Linux protocol extensions disabled
CIFS VFS: leaving cifs_mount (xid = 262) rc = 0
CIFS VFS: in cifs_root_iget as Xid: 265 with uid: 0
Getting info on
For smb_command 50
Sending smb:  total_len 78
rfc1002 length 0x90
sync_mid_result: cmd=50 mid=7 state=4
In GetSrvInodeNum for
For smb_command 50
Sending smb:  total_len 78
rfc1002 length 0x48
sync_mid_result: cmd=50 mid=8 state=4
looking for uniqueid=386428
cifs_revalidate_cache: revalidating inode 386428
cifs_revalidate_cache: inode 386428 is new
inode 0xdbda7d74 old_time=0 new_time=3514878
export ops supported
CIFS VFS: in cifs_lookup as Xid: 266 with uid: 1000
parent inode = 0xdbda7d74 name is: .Trash and dentry = 0xde2b7b80
NULL inode in lookup
Full path: \.Trash inode = 0x  (null)
Getting info on \.Trash
For smb_command 50
Sending smb:  total_len 92
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=50 mid=9 state=4
[14360.558680] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo = -2
CIFS VFS: leaving cifs_lookup (xid = 266) rc = 0
CIFS VFS: in cifs_lookup as Xid: 267 with uid: 1000
parent inode = 0xdbda7d74 name is: .Trash-1000 and dentry = 0xde2b7e00
NULL inode in lookup
Full path: \.Trash-1000 inode = 0x  (null)
Getting info on \.Trash-1000
For smb_command 50
Sending smb:  total_len 102
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=50 mid=10 state=4
[14360.561692] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo = -2
CIFS VFS: leaving cifs_lookup (xid = 267) rc = 0
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
Thanks,
Steve
Steve French
2011-06-13 23:52:53 UTC
Permalink
Weird - two search requests are sent - level 261 and level 257, the
former seems to be the problem. The trace shows that the server did
respond with similar (identical?) lists of files (8) in both cases,
but I expect that has trouble with generating server side inode
numbers (unique identifiers for files) - can you try disabling use of
server side inode numbers, for example

"nounix,noserverino,sec=3Dntlmssp"
Post by Kong Li
Hi Steve,
I have enclosed the trace from wireshark (running on mac).
/proc/fs/cifs/cifsFYI is set to 7.
$ cat /proc/fs/cifs/cifsFYI
7
$ sudo /sbin/mount.cifs -v -o
user=3Dadministrator,pass=3DYYY,nounix,sec=3Dntlmssp //192.168.77.244=
/Misc
Post by Kong Li
mnt
ip=3D192.168.77.244,unc=3D\\192.168.77.244\Misc,nounix,sec=3Dntlmssp,=
ver=3D1,user=3Dadministrator,pass=3D********
Post by Kong Li
$ ls mnt
g$ ls mnt
me =A0rockandroll =A0test =A0us =A0you
$
Any comment would be greatly appreciated.
Thanks again.
Kong
Post by Steve French
mounting with "nounix,sec=3Dntlmssp" works!
However, the 1st "ls" does not return anything back until the 2nd "=
ls" command.
Post by Kong Li
Post by Steve French
Do you think there is server-side bug? (which would not be surprisi=
ng
Post by Kong Li
Post by Steve French
since 10.7 is still "preview")
Yes - probably, but hard to prove without a network trace of the
server responses
to the SMB Transaction2 FindFirst requests. =A0 I am a little puzzle=
d why I don't
Post by Kong Li
Post by Steve French
see the "In FindFirst" debug message in the log (is /proc/fs/cifs/ci=
fsFYI set to
Post by Kong Li
Post by Steve French
3 or preferably 7?).
$ /sbin/mount.cifs -v -o user=3Dadministrator,pass=3DYYY,nounix,sec=
=3Dntlmssp
Post by Kong Li
Post by Steve French
//192.168.77.244/Misc mnt
mount.cifs kernel mount options: ip=3D192.168.77.244,unc=3D\\192.16=
8.77.244\Misc,
Post by Kong Li
Post by Steve French
nounix,sec=3Dntlmssp,ver=3D1,user=3Dadministrator,pass=3D********
$ ls mnt
$ ls mnt
me =A0rockandroll =A0test =A0us =A0you
Devname: //192.168.77.244/Misc flags: 0
CIFS VFS: in cifs_mount as Xid: 262 with uid: 0
Username: administrator
UNC: \\192.168.77.244\Misc ip: 192.168.77.244
Socket created
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
CIFS VFS: in cifs_get_smb_ses as Xid: 263 with uid: 0
Existing smb sess not found
secFlags 0x80
NTLMSSP only mechanism, enable extended security
For smb_command 114
Sending smb: =A0total_len 82
Demultiplex PID: 5409
rfc1002 length 0xd9
sync_mid_result: cmd=3D114 mid=3D1 state=3D4
Dialect: 2
OID len =3D 7 oid =3D 0x1 0x2 0x348 0xbb92
OID len =3D 7 oid =3D 0x1 0x2 0x348 0x1bb92
OID len =3D 6 oid =3D 0x1 0x2 0x2f0 0x2b
OID len =3D 7 oid =3D 0x1 0x3 0x6 0x1
OID len =3D 10 oid =3D 0x1 0x3 0x6 0x1
OID len =3D 7 oid =3D 0x1 0x3 0x5 0x1
OID len =3D 7 oid =3D 0x1 0x3 0x6 0x1
Need to call asn1_octets_decode() function for
Signing disabled
negprot rc 0
Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0
sess setup type 3
ntlmssp session setup phase 1
For smb_command 115
Sending smb: =A0total_len 210
rfc1002 length 0xf8
sync_mid_result: cmd=3D115 mid=3D2 state=3D4
[14359.460831] Status code returned 0xc0000016
NT_STATUS_MORE_PROCESSING_REQUIRED
Mapping smb error code 0xc0000016 to POSIX err -5
Null buffer passed to cifs_small_buf_release
Guest login
UID =3D 10
bleft 86
serverOS=3DDarwin
serverDomain=3D
ssetup freeing small buf db8ab8c0
ntlmssp session setup phase 3
For smb_command 115
Sending smb: =A0total_len 396
rfc1002 length 0x86
sync_mid_result: cmd=3D115 mid=3D3 state=3D4
Null buffer passed to cifs_small_buf_release
UID =3D 10
bleft 86
serverOS=3DDarwin
serverDomain=3D
ssetup freeing small buf db8ab700
CIFS Session Established successfully
CIFS VFS: leaving cifs_get_smb_ses (xid =3D 263) rc =3D 0
file mode: 0x1ed =A0dir mode: 0x1ed
CIFS VFS: in cifs_get_tcon as Xid: 264 with uid: 0
For smb_command 117
Sending smb: =A0total_len 98
rfc1002 length 0x42
sync_mid_result: cmd=3D117 mid=3D4 state=3D4
disk share connection
nativeFileSystem=3DNTFS
Tcon flags: 0x0
CIFS VFS: leaving cifs_get_tcon (xid =3D 264) rc =3D 0
CIFS Tcon rc =3D 0
In QFSDeviceInfo
For smb_command 50
Sending smb: =A0total_len 72
rfc1002 length 0x44
sync_mid_result: cmd=3D50 mid=3D5 state=3D4
In QFSAttributeInfo
For smb_command 50
Sending smb: =A0total_len 72
rfc1002 length 0x50
sync_mid_result: cmd=3D50 mid=3D6 state=3D4
Linux protocol extensions disabled
CIFS VFS: leaving cifs_mount (xid =3D 262) rc =3D 0
CIFS VFS: in cifs_root_iget as Xid: 265 with uid: 0
Getting info on
For smb_command 50
Sending smb: =A0total_len 78
rfc1002 length 0x90
sync_mid_result: cmd=3D50 mid=3D7 state=3D4
In GetSrvInodeNum for
For smb_command 50
Sending smb: =A0total_len 78
rfc1002 length 0x48
sync_mid_result: cmd=3D50 mid=3D8 state=3D4
looking for uniqueid=3D386428
cifs_revalidate_cache: revalidating inode 386428
cifs_revalidate_cache: inode 386428 is new
inode 0xdbda7d74 old_time=3D0 new_time=3D3514878
export ops supported
CIFS VFS: in cifs_lookup as Xid: 266 with uid: 1000
parent inode =3D 0xdbda7d74 name is: .Trash and dentry =3D 0xde2b7b=
80
Post by Kong Li
Post by Steve French
NULL inode in lookup
Full path: \.Trash inode =3D 0x =A0(null)
Getting info on \.Trash
For smb_command 50
Sending smb: =A0total_len 92
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=3D50 mid=3D9 state=3D4
[14360.558680] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAM=
E_NOT_FOUND
Post by Kong Li
Post by Steve French
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo =3D -2
CIFS VFS: leaving cifs_lookup (xid =3D 266) rc =3D 0
CIFS VFS: in cifs_lookup as Xid: 267 with uid: 1000
parent inode =3D 0xdbda7d74 name is: .Trash-1000 and dentry =3D 0xd=
e2b7e00
Post by Kong Li
Post by Steve French
NULL inode in lookup
Full path: \.Trash-1000 inode =3D 0x =A0(null)
Getting info on \.Trash-1000
For smb_command 50
Sending smb: =A0total_len 102
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=3D50 mid=3D10 state=3D4
[14360.561692] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAM=
E_NOT_FOUND
Post by Kong Li
Post by Steve French
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo =3D -2
CIFS VFS: leaving cifs_lookup (xid =3D 267) rc =3D 0
--
To unsubscribe from this list: send the line "unsubscribe linux-cif=
s" in
Post by Kong Li
Post by Steve French
More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm=
l
Post by Kong Li
Post by Steve French
--
Thanks,
Steve
--=20
Thanks,

Steve
Kong Li
2011-06-14 00:07:57 UTC
Permalink
mounting with "nounix,noserverino,sec=ntlmssp" fixed the empty output from "ls".
see enclosed trace from wireshark (running on Mac).

$ sudo /sbin/mount.cifs -v -o
user=administrator,pass=YYY,nounix,noserverino,sec=ntlmssp
//192.168.77.244/Misc mnt
mount.cifs kernel mount options:
ip=192.168.77.244,unc=\\192.168.77.244\Misc,nounix,noserverino,sec=ntlmssp,ver=1,user=administrator,pass=********
$ ls mnt
me rockandroll test us you
$ ls mnt
me rockandroll test us you
$

Thanks.

Kong
Post by Steve French
Weird - two search requests are sent - level 261 and level 257, the
former seems to be the problem.  The trace shows that the server did
respond with similar (identical?) lists of files (8) in both cases,
but I expect that has trouble with generating server side inode
numbers (unique identifiers for files) - can you try disabling use of
server side inode numbers, for example
"nounix,noserverino,sec=ntlmssp"
Post by Kong Li
Hi Steve,
I have enclosed the trace from wireshark (running on mac).
/proc/fs/cifs/cifsFYI is set to 7.
$ cat /proc/fs/cifs/cifsFYI
7
$ sudo /sbin/mount.cifs -v -o
user=administrator,pass=YYY,nounix,sec=ntlmssp //192.168.77.244/Misc
mnt
ip=192.168.77.244,unc=\\192.168.77.244\Misc,nounix,sec=ntlmssp,ver=1,user=administrator,pass=********
$ ls mnt
g$ ls mnt
me  rockandroll  test  us  you
$
Any comment would be greatly appreciated.
Thanks again.
Kong
Post by Steve French
Post by Kong
mounting with "nounix,sec=ntlmssp" works!
However, the 1st "ls" does not return anything back until the 2nd "ls" command.
Do you think there is server-side bug? (which would not be surprising
since 10.7 is still "preview")
Yes - probably, but hard to prove without a network trace of the
server responses
to the SMB Transaction2 FindFirst requests.   I am a little puzzled why I don't
see the "In FindFirst" debug message in the log (is /proc/fs/cifs/cifsFYI set to
3 or preferably 7?).
Post by Kong
$ /sbin/mount.cifs -v -o user=administrator,pass=YYY,nounix,sec=ntlmssp
//192.168.77.244/Misc mnt
mount.cifs kernel mount options: ip=192.168.77.244,unc=\\192.168.77.244\Misc,
nounix,sec=ntlmssp,ver=1,user=administrator,pass=********
$ ls mnt
$ ls mnt
me  rockandroll  test  us  you
Devname: //192.168.77.244/Misc flags: 0
CIFS VFS: in cifs_mount as Xid: 262 with uid: 0
Username: administrator
UNC: \\192.168.77.244\Misc ip: 192.168.77.244
Socket created
sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
CIFS VFS: in cifs_get_smb_ses as Xid: 263 with uid: 0
Existing smb sess not found
secFlags 0x80
NTLMSSP only mechanism, enable extended security
For smb_command 114
Sending smb:  total_len 82
Demultiplex PID: 5409
rfc1002 length 0xd9
sync_mid_result: cmd=114 mid=1 state=4
Dialect: 2
OID len = 7 oid = 0x1 0x2 0x348 0xbb92
OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
OID len = 6 oid = 0x1 0x2 0x2f0 0x2b
OID len = 7 oid = 0x1 0x3 0x6 0x1
OID len = 10 oid = 0x1 0x3 0x6 0x1
OID len = 7 oid = 0x1 0x3 0x5 0x1
OID len = 7 oid = 0x1 0x3 0x6 0x1
Need to call asn1_octets_decode() function for
Signing disabled
negprot rc 0
Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0
sess setup type 3
ntlmssp session setup phase 1
For smb_command 115
Sending smb:  total_len 210
rfc1002 length 0xf8
sync_mid_result: cmd=115 mid=2 state=4
[14359.460831] Status code returned 0xc0000016
NT_STATUS_MORE_PROCESSING_REQUIRED
Mapping smb error code 0xc0000016 to POSIX err -5
Null buffer passed to cifs_small_buf_release
Guest login
UID = 10
bleft 86
serverOS=Darwin
serverDomain=
ssetup freeing small buf db8ab8c0
ntlmssp session setup phase 3
For smb_command 115
Sending smb:  total_len 396
rfc1002 length 0x86
sync_mid_result: cmd=115 mid=3 state=4
Null buffer passed to cifs_small_buf_release
UID = 10
bleft 86
serverOS=Darwin
serverDomain=
ssetup freeing small buf db8ab700
CIFS Session Established successfully
CIFS VFS: leaving cifs_get_smb_ses (xid = 263) rc = 0
file mode: 0x1ed  dir mode: 0x1ed
CIFS VFS: in cifs_get_tcon as Xid: 264 with uid: 0
For smb_command 117
Sending smb:  total_len 98
rfc1002 length 0x42
sync_mid_result: cmd=117 mid=4 state=4
disk share connection
nativeFileSystem=NTFS
Tcon flags: 0x0
CIFS VFS: leaving cifs_get_tcon (xid = 264) rc = 0
CIFS Tcon rc = 0
In QFSDeviceInfo
For smb_command 50
Sending smb:  total_len 72
rfc1002 length 0x44
sync_mid_result: cmd=50 mid=5 state=4
In QFSAttributeInfo
For smb_command 50
Sending smb:  total_len 72
rfc1002 length 0x50
sync_mid_result: cmd=50 mid=6 state=4
Linux protocol extensions disabled
CIFS VFS: leaving cifs_mount (xid = 262) rc = 0
CIFS VFS: in cifs_root_iget as Xid: 265 with uid: 0
Getting info on
For smb_command 50
Sending smb:  total_len 78
rfc1002 length 0x90
sync_mid_result: cmd=50 mid=7 state=4
In GetSrvInodeNum for
For smb_command 50
Sending smb:  total_len 78
rfc1002 length 0x48
sync_mid_result: cmd=50 mid=8 state=4
looking for uniqueid=386428
cifs_revalidate_cache: revalidating inode 386428
cifs_revalidate_cache: inode 386428 is new
inode 0xdbda7d74 old_time=0 new_time=3514878
export ops supported
CIFS VFS: in cifs_lookup as Xid: 266 with uid: 1000
parent inode = 0xdbda7d74 name is: .Trash and dentry = 0xde2b7b80
NULL inode in lookup
Full path: \.Trash inode = 0x  (null)
Getting info on \.Trash
For smb_command 50
Sending smb:  total_len 92
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=50 mid=9 state=4
[14360.558680] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo = -2
CIFS VFS: leaving cifs_lookup (xid = 266) rc = 0
CIFS VFS: in cifs_lookup as Xid: 267 with uid: 1000
parent inode = 0xdbda7d74 name is: .Trash-1000 and dentry = 0xde2b7e00
NULL inode in lookup
Full path: \.Trash-1000 inode = 0x  (null)
Getting info on \.Trash-1000
For smb_command 50
Sending smb:  total_len 102
rfc1002 length 0x27
invalid transact2 word count
sync_mid_result: cmd=50 mid=10 state=4
[14360.561692] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
Mapping smb error code 0xc0000034 to POSIX err -2
Send error in QPathInfo = -2
CIFS VFS: leaving cifs_lookup (xid = 267) rc = 0
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
Thanks,
Steve
--
Thanks,
Steve
Trevor Cordes
2012-09-04 06:43:06 UTC
Permalink
Post by Kong Li
mounting with "nounix,noserverino,sec=ntlmssp" fixed the empty output from "ls
see enclosed trace from wireshark (running on Mac).
Yes, that fixes the mount problems. However, now there's a big problem because
of nounix: you can't read any files on the Mac that are symlinks.

On Mac:
# ls -l
lrwxr-xr-x ... iChat Icons -> /Library/Application Support/Apple/iChat Icons/

(It points to a directory actually.)

On Linux with that Mac share mounted:

# ls -l
-rw-r--r-- 1 root root 0 Jun 13 2010 iChat Icons

# cat iChat\ Icons
cat: /mnt/netbak/iChat Icons: Object is remote

Which is causing an app of mine to blow up when it tries to figure out what to
do with these files.

I understand that nounix will break symlinks. So how do we get a Mac share
mounted and still get symlinks to work? Or is it hopeless because Apple screwed
us over?

Thanks

sectroyer
2012-02-04 11:21:41 UTC
Permalink
Looks like a possible server bug (or configuration setting). Very odd for
server to require extended security but not require kerberos.
I get the same error on 10.7.3 but unfortunately adding options mentioned before
doesn't help anymore :( Is there any way to fix it?
Joe
2011-07-23 15:27:23 UTC
Permalink
Where did you get mount.cifs version 5
Kong Li
2011-07-24 02:26:59 UTC
Permalink
http://ftp.samba.org/pub/linux-cifs/cifs-utils/
Post by Joe
Where did you get mount.cifs version 5
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs"=
in
Post by Joe
More majordomo info at =C2=A0http://vger.kernel.org/majordomo-info.ht=
ml
Loading...