[linux-cifs-client] Can mount from one box, but not another

Dan Osterrath Dan.Osterrath at gmx.de
Tue Jan 22 10:01:15 GMT 2008



Laker Netman wrote:
> 
> The short version is I have two FC5 boxes connecting to a Windows 2000
> workstation's administrative shares on C$ and D$.  "Box 1" was installed
> with FC5 from scratch (and updates nightly with Yum).  It connects without
> issue to the W2K workstation in question, as Administrator.  The second
> FC5 box was upgraded from FC4.  Previously at FC4 this box also connected
> without issue to the same W2K box, again as Administrator.  After the
> upgrade to FC5 all is get in "Box 2"s kernel log is:
>  CIFS VFS: Send error in SessSetup = -13
>  CIFS VFS: cifs_mount failed w/return code = -13
> 

Hello list members,

I have a very similiar problem with a OpenSuSE 10.3 box. I can not mount a
CIFS share from a ReadyNAS NV box. The command
mount.cifs //mordor/LWZ /mnt/Z --verbose -o guest
results in:

parsing options: guest

mount.cifs kernel mount options
unc=//mordor\LWZ,ip=192.168.35.214,user=root,ver=1,guest
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

When I enable extended logging in /proc/fs/cifs/{cifsFYI|traceSMB} I get the
following output from dmesg:

 fs/cifs/cifsfs.c: Devname: //mordor/LWZ flags: 64
 fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 59 with uid: 0
 fs/cifs/connect.c: Username: root
 fs/cifs/connect.c: UNC: \\mordor\LWZ ip: 192.168.35.214
 fs/cifs/connect.c: Socket created
 fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffff
 fs/cifs/connect.c: Demultiplex PID: 8849
 fs/cifs/connect.c: Existing smb sess not found
 fs/cifs/cifssmb.c: secFlags 0x7
 fs/cifs/transport.c: For smb_command 114
 fs/cifs/transport.c: Sending smb of length 78
| 0x00 0x00 0x00 0x4e 0xff 0x53 0x4d 0x42  |  _ _ _ N 377 S M B
| 0x72 0x00 0x00 0x00 0x00 0x00 0x01 0xc0  |  r _ _ _ _ _ _ 300
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0x00 0x00 0x00 0x90 0x22  |  _ _ _ _ _ _ _ "
| 0x00 0x00 0x01 0x00 0x00 0x2b 0x00 0x02  |  _ _ _ _ _ + _ _
| 0x4c 0x4d 0x31 0x2e 0x32 0x58 0x30 0x30  |  L M 1 . 2 X 0 0
| 0x32 0x00 0x02 0x4c 0x41 0x4e 0x4d 0x41  |  2 _ _ L A N M A
| 0x4e 0x32 0x2e 0x31 0x00 0x02 0x4e 0x54  |  N 2 . 1 _ _ N T
| 0x20 0x4c 0x4d 0x20 0x30 0x2e 0x31 0x32  |    L M   0 . 1 2
| 0x00 0x02 0x50 0x4f 0x53 0x49 0x58 0x20  |  _ _ P O S I X
| 0x32 0x00                                |  2 _
 fs/cifs/connect.c: rfc1002 length 0x59)
| 0x55 0x00 0x00 0x00 0xff 0x53 0x4d 0x42  |  U _ _ _ 377 S M B
| 0x72 0x00 0x00 0x00 0x00 0x80 0x01 0xc0  |  r _ _ _ _ _ _ 300
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0x00 0x00 0x00 0x90 0x22  |  _ _ _ _ _ _ _ "
| 0x00 0x00 0x01 0x00 0x11 0x02 0x00 0x03  |  _ _ _ _ _ _ _ _
| 0x32 0x00 0x01 0x00 0x04 0x41 0x00 0x00  |  2 _ _ _ _ A _ _
| 0x00 0x00 0x01 0x00 0x49 0x0d 0x00 0x00  |  _ _ _ _ I _ _ _
| 0xfd 0xf3 0x80 0x00 0x80 0xbc 0x7a 0xfa  |  375 363 _ _ _ 274 z 372
| 0xdb 0x5c 0xc8 0x01 0xc4 0xff 0x08 0x10  |  333 \ 310 _ 304 377 _ _
| 0x00 0x97 0xbc 0x9e 0x9f 0x14 0xd4 0xf1  |  _ _ 274 _ _ _ 324 361
| 0x46 0x33 0x00 0x4d 0x00 0x35 0x00 0x00  |  F 3 _ M _ 5 _ _
| 0x00                                     |  _
| 0x55 0x00 0x00 0x00 0xff 0x53 0x4d 0x42  |  U _ _ _ 377 S M B
| 0x72 0x00 0x00 0x00 0x00 0x80 0x01 0xc0  |  r _ _ _ _ _ _ 300
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0x00 0x00 0x00 0x90 0x22  |  _ _ _ _ _ _ _ "
| 0x00 0x00 0x01 0x00 0x11 0x02 0x00 0x03  |  _ _ _ _ _ _ _ _
| 0x32 0x00 0x01 0x00 0x04 0x41 0x00 0x00  |  2 _ _ _ _ A _ _
| 0x00 0x00 0x01 0x00 0x49 0x0d 0x00 0x00  |  _ _ _ _ I _ _ _
| 0xfd 0xf3 0x80 0x00 0x80 0xbc 0x7a 0xfa  |  375 363 _ _ _ 274 z 372
| 0xdb 0x5c 0xc8 0x01 0xc4 0xff 0x08 0x10  |  333 \ 310 _ 304 377 _ _
| 0x00 0x97 0xbc 0x9e 0x9f 0x14 0xd4 0xf1  |  _ _ 274 _ _ _ 324 361
| 0x46 0x33 0x00 0x4d 0x00 0x35 0x00 0x00  |  F 3 _ M _ 5 _ _
| 0x00 0x00 0x00 0x00                      |  _ _ _ _
 fs/cifs/cifssmb.c: Dialect: 2
 fs/cifs/cifssmb.c: negprot rc 0
 fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust:
-3600
 fs/cifs/sess.c: sess setup type 1
 fs/cifs/transport.c: For smb_command 115
 fs/cifs/transport.c: Sending smb:  total_len 250
| 0x00 0x00 0x00 0xf6 0xff 0x53 0x4d 0x42  |  _ _ _ 366 377 S M B
| 0x73 0x00 0x00 0x00 0x00 0x00 0x01 0xd0  |  s _ _ _ _ _ _ 320
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0x00 0x00 0x00 0x90 0x22  |  _ _ _ _ _ _ _ "
| 0x00 0x00 0x02 0x00 0x0d 0xff 0x00 0x00  |  _ _ _ _ _ 377 _ _
| 0x00 0x58 0x40 0x32 0x00 0x00 0x00 0x00  |  _ X @ 2 _ _ _ _
| 0x00 0x00 0x00 0x18 0x00 0x18 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0xdc 0xd0 0x80 0x00 0xb9  |  _ _ _ 334 320 _ _ 271
| 0x00                                     |  _
 fs/cifs/connect.c: rfc1002 length 0x27)
| 0x23 0x00 0x00 0x00 0xff 0x53 0x4d 0x42  |  # _ _ _ 377 S M B
| 0x73 0x6d 0x00 0x00 0xc0 0x80 0x01 0xc0  |  s m _ _ 300 _ _ 300
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0x00 0x00 0x00 0x90 0x22  |  _ _ _ _ _ _ _ "
| 0x00 0x00 0x02 0x00 0x00 0x00 0x00       |  _ _ _ _ _ _ _
| 0x23 0x00 0x00 0x00 0xff 0x53 0x4d 0x42  |  # _ _ _ 377 S M B
| 0x73 0x6d 0x00 0x00 0xc0 0x80 0x01 0xc0  |  s m _ _ 300 _ _ 300
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0x00 0x00 0x00 0x90 0x22  |  _ _ _ _ _ _ _ "
| 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x58 0x40 0x32 0x00 0x00 0x00 0x00  |  _ X @ 2 _ _ _ _
| 0x00 0x00 0x00 0x18 0x00 0x18 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0xdc 0xd0 0x80 0x00 0xc7  |  _ _ _ 334 320 _ _ 307
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
| 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
 |  _ _ _ _ _ _ _ _
 fs/cifs/netmisc.c:  !!Mapping smb error code 5 to POSIX err -13 !!
 fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
 fs/cifs/sess.c: ssetup rc from sendrecv2 is -13
 fs/cifs/sess.c: ssetup freeing small buf dd2d4100
 CIFS VFS: Send error in SessSetup = -13
 fs/cifs/connect.c: cifsd thread killed
 fs/cifs/connect.c: No session or bad tcon
 fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 59) rc = -13
 CIFS VFS: cifs_mount failed w/return code = -13

Mounting from another Linxu box via SMBFS worfs. MacOS X and Windows
XP/Vista boxes also don't have a problem.

Some more notes to the failing client box:
$ uname -a
Linux auenland 2.6.22.13-0.3-default #1 SMP 2007/11/19 15:02:58 UTC i686
i686 i386 GNU/Linux
$ mount.cifs -V
mount.cifs version: 1.10-3.0.26a-3.5-1616-SUSE-SL10.3

Any suggestions?
Thanx for your help,
Dan
-- 
View this message in context: http://www.nabble.com/Can-mount-from-one-box%2C-but-not-another-tp7240219p15015680.html
Sent from the Samba - linux-cifs-client mailing list archive at Nabble.com.



More information about the linux-cifs-client mailing list