I want to mount a private share (only password needed) from the NAS device WD NetCenter 320 GB Ethernet Hard Drives ( WDXE3200JB ), latest Firmware Version 1.1.0.0003 SMBFS mount works fine: cocopc:/home/coco# mount -t smbfs //archive/store /archive/store -o username=coco,password=cocostore cocopc:/home/coco# CIFS mount does not (dmesg output see below): cocopc:/home/coco# mount -t cifs //archive/store /archive/store -o username=coco,password=cocostore mount error 1 = Operation not permitted Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mounting a public share of same device with CIFS works fine, seems to be a kind of authentication issue. System information: ------------ debian, stage testing coco@cocopc:~$ uname -a Linux cocopc 2.6.15-1-686 #2 Mon Mar 6 15:27:08 UTC 2006 i686 GNU/Linux ------------ dmesg-output fs/cifs/cifsfs.c: Devname: //archive/store flags: 64 fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 11943 with uid: 0 fs/cifs/connect.c: Username: coco fs/cifs/connect.c: UNC: \\archive\store ip: 192.168.1.8 fs/cifs/connect.c: Socket created fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffff fs/cifs/connect.c: Demultiplex PID: 14961 fs/cifs/connect.c: Existing smb sess not found fs/cifs/transport.c: For smb_command 114 fs/cifs/transport.c: Sending smb of length 47 | 0x00 0x00 0x00 0x2f 0xff 0x53 0x4d 0x42 | _ _ _ / ÿ S M B | 0x72 0x00 0x00 0x00 0x00 0x00 0x01 0x80 | r _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x01 0x00 0x00 0x0c 0x00 0x02 | _ _ _ _ _ _ _ _ | 0x4e 0x54 0x20 0x4c 0x4d 0x20 0x30 0x2e | N T L M 0 . | 0x31 0x32 0x00 | 1 2 _ fs/cifs/connect.c: rfc1002 length 0x61) | 0x5d 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | ] _ _ _ ÿ S M B | 0x72 0x00 0x00 0x00 0x00 0x80 0x01 0xc8 | r _ _ _ _ _ _ È | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x01 0x00 0x11 0x00 0x00 0x02 | _ _ _ _ _ _ _ _ | 0x32 0x00 0x01 0x00 0x04 0x41 0x00 0x00 | 2 _ _ _ _ A _ _ | 0x00 0x00 0x01 0x00 0x63 0x0d 0x00 0x00 | _ _ _ _ c _ _ _ | 0xfd 0xe3 0x80 0x00 0x00 0xeb 0x88 0x2c | ý ã _ _ _ ë _ , | 0xd0 0xdf 0xc6 0x01 0x00 0x00 0x08 0x18 | Ð ß Æ _ _ _ _ _ | 0x00 0x91 0x92 0xde 0x46 0x92 0x0b 0x80 | _ _ _ Þ F _ _ _ | 0x2b 0x43 0x00 0x4f 0x00 0x43 0x00 0x4f | + C _ O _ C _ O | 0x00 0x4e 0x00 0x45 0x00 0x54 0x00 0x00 | _ N _ E _ T _ _ | 0x00 | _ | 0x5d 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | ] _ _ _ ÿ S M B | 0x72 0x00 0x00 0x00 0x00 0x80 0x01 0xc8 | r _ _ _ _ _ _ È | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x01 0x00 0x11 0x00 0x00 0x02 | _ _ _ _ _ _ _ _ | 0x32 0x00 0x01 0x00 0x04 0x41 0x00 0x00 | 2 _ _ _ _ A _ _ | 0x00 0x00 0x01 0x00 0x63 0x0d 0x00 0x00 | _ _ _ _ c _ _ _ | 0xfd 0xe3 0x80 0x00 0x00 0xeb 0x88 0x2c | ý ã _ _ _ ë _ , | 0xd0 0xdf 0xc6 0x01 0x00 0x00 0x08 0x18 | Ð ß Æ _ _ _ _ _ | 0x00 0x91 0x92 0xde 0x46 0x92 0x0b 0x80 | _ _ _ Þ F _ _ _ | 0x2b 0x43 0x00 0x4f 0x00 0x43 0x00 0x4f | + C _ O _ C _ O | 0x00 0x4e 0x00 0x45 | _ N _ E fs/cifs/connect.c: Security Mode: 0x2 Capabilities: 0x80e3fd Time Zone: 0 fs/cifs/connect.c: In sesssetup fs/cifs/transport.c: For smb_command 115 fs/cifs/transport.c: Sending smb of length 228 | 0x00 0x00 0x00 0xe4 0xff 0x53 0x4d 0x42 | _ _ _ ä ÿ S M B | 0x73 0x00 0x00 0x00 0x00 0x00 0x01 0xc0 | s _ _ _ _ _ _ À | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x02 0x00 0x0d 0xff 0x00 0x00 | _ _ _ _ _ ÿ _ _ | 0x00 0x00 0x41 0x32 0x00 0x00 0x00 0x00 | _ _ A 2 _ _ _ _ | 0x00 0x00 0x00 0x18 0x00 0x18 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0xdc 0xc0 0x00 0x00 0xa7 | _ _ _ Ü À _ _ § | 0x00 0x8b 0xe8 0x52 0x93 0x27 0xb1 0x7d | _ _ è R _ ' ± } | 0xce 0xf4 0x0f 0x8c 0xba 0xdd 0xed 0x3a | Î ô _ _ º Ý í : | 0x66 0x42 0xe8 0xd4 0x67 0x25 0x16 0xc4 | f B è Ô g % _ Ä | 0x4b 0x8b 0xe8 0x52 0x93 0x27 0xb1 0x7d | K _ è R _ ' ± } | 0xce 0xf4 0x0f 0x8c 0xba 0xdd 0xed 0x3a | Î ô _ _ º Ý í : | 0x66 0x42 0xe8 0xd4 0x67 0x25 0x16 0xc4 | f B è Ô g % _ Ä | 0x4b 0x00 0x63 0x00 0x6f 0x00 0x63 0x00 | K _ c _ o _ c _ | 0x6f 0x00 0x00 0x00 0x00 0x00 0x4c 0x00 | o _ _ _ _ _ L _ | 0x69 0x00 0x6e 0x00 0x75 0x00 0x78 0x00 | i _ n _ u _ x _ | 0x20 0x00 0x76 0x00 0x65 0x00 0x72 0x00 | _ v _ e _ r _ | 0x73 0x00 0x69 0x00 0x6f 0x00 0x6e 0x00 | s _ i _ o _ n _ | 0x20 0x00 0x32 0x00 0x2e 0x00 0x36 0x00 | _ 2 _ . _ 6 _ | 0x2e 0x00 0x31 0x00 0x35 0x00 0x2d 0x00 | . _ 1 _ 5 _ - _ | 0x31 0x00 0x2d 0x00 0x36 0x00 0x38 0x00 | 1 _ - _ 6 _ 8 _ | 0x36 0x00 0x00 0x00 0x43 0x00 0x49 0x00 | 6 _ _ _ C _ I _ | 0x46 0x00 0x53 0x00 0x20 0x00 0x56 0x00 | F _ S _ _ V _ | 0x46 0x00 0x53 0x00 0x20 0x00 0x43 0x00 | F _ S _ _ C _ | 0x6c 0x00 0x69 0x00 0x65 0x00 0x6e 0x00 | l _ i _ e _ n _ | 0x74 0x00 0x20 0x00 0x66 0x00 0x6f 0x00 | t _ _ f _ o _ | 0x72 0x00 0x20 0x00 0x4c 0x00 0x69 0x00 | r _ _ L _ i _ | 0x6e 0x00 0x75 0x00 0x78 0x00 0x00 0x00 | n _ u _ x _ _ _ | n _ u _ x _ _ _ fs/cifs/connect.c: rfc1002 length 0x60) | 0x5c 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | \ _ _ _ ÿ S M B | 0x73 0x00 0x00 0x00 0x00 0x80 0x01 0xc8 | s _ _ _ _ _ _ È | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x02 0x00 0x03 0xff 0x00 0x00 | _ _ _ _ _ ÿ _ _ | 0x00 0x01 0x00 0x33 0x00 0x00 0x55 0x00 | _ _ _ 3 _ _ U _ | 0x6e 0x00 0x69 0x00 0x78 0x00 0x00 0x00 | n _ i _ x _ _ _ | 0x53 0x00 0x61 0x00 0x6d 0x00 0x62 0x00 | S _ a _ m _ b _ | 0x61 0x00 0x20 0x00 0x33 0x00 0x2e 0x00 | a _ _ 3 _ . _ | 0x30 0x00 0x2e 0x00 0x32 0x00 0x00 0x00 | 0 _ . _ 2 _ _ _ | 0x43 0x00 0x4f 0x00 0x43 0x00 0x4f 0x00 | C _ O _ C _ O _ | 0x4e 0x00 0x45 0x00 0x54 0x00 0x00 0x00 | N _ E _ T _ _ _ | N _ E _ T _ _ _ | 0x5c 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | \ _ _ _ ÿ S M B | 0x73 0x00 0x00 0x00 0x00 0x80 0x01 0xc8 | s _ _ _ _ _ _ È | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x02 0x00 0x03 0xff 0x00 0x00 | _ _ _ _ _ ÿ _ _ | 0x00 0x01 0x00 0x33 0x00 0x00 0x55 0x00 | _ _ _ 3 _ _ U _ | 0x6e 0x00 0x69 0x00 0x78 0x00 0x00 0x00 | n _ i _ x _ _ _ | 0x53 0x00 0x61 0x00 0x6d 0x00 0x62 0x00 | S _ a _ m _ b _ | 0x61 0x00 0x20 0x00 0x33 0x00 0x2e 0x00 | a _ _ 3 _ . _ | 0x30 0x00 0x2e 0x00 0x32 0x00 0x00 0x00 | 0 _ . _ 2 _ _ _ | 0x43 0x00 0x4f 0x00 0x43 0x00 0x4f 0x00 | C _ O _ C _ O _ | 0x4e 0x00 0x45 0x00 | N _ E _ fs/cifs/connect.c: Guest login fs/cifs/connect.c: UID = 0 fs/cifs/connect.c: CIFS Session Established successfully fs/cifs/connect.c: file mode: 0x7f7 dir mode: 0x1ff fs/cifs/transport.c: For smb_command 117 fs/cifs/transport.c: Sending smb of length 82 | 0x00 0x00 0x00 0x52 0xff 0x53 0x4d 0x42 | _ _ _ R ÿ S M B | 0x75 0x00 0x00 0x00 0x00 0x00 0x01 0xc0 | u _ _ _ _ _ _ À | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x03 0x00 0x04 0xff 0x00 0x00 | _ _ _ _ _ ÿ _ _ | 0x00 0x08 0x00 0x01 0x00 0x27 0x00 0x00 | _ _ _ _ _ ' _ _ | 0x5c 0x00 0x5c 0x00 0x61 0x00 0x72 0x00 | \ _ \ _ a _ r _ | 0x63 0x00 0x68 0x00 0x69 0x00 0x76 0x00 | c _ h _ i _ v _ | 0x65 0x00 0x5c 0x00 0x73 0x00 0x74 0x00 | e _ \ _ s _ t _ | 0x6f 0x00 0x72 0x00 0x65 0x00 0x00 0x00 | o _ r _ e _ _ _ | 0x3f 0x3f 0x3f 0x3f 0x3f 0x00 | ? ? ? ? ? _ fs/cifs/connect.c: rfc1002 length 0x27) | 0x23 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | # _ _ _ ÿ S M B | 0x75 0x6a 0x00 0x00 0xc0 0x80 0x01 0xc8 | u j _ _ À _ _ È | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x03 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ | 0x23 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | # _ _ _ ÿ S M B | 0x75 0x6a 0x00 0x00 0xc0 0x80 0x01 0xc8 | u j _ _ À _ _ È | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x03 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x08 0x00 0x01 0x00 0x27 0x00 0x00 | _ _ _ _ _ ' _ _ | 0x5c 0x00 0x5c 0x00 0x61 0x00 0x72 0x00 | \ _ \ _ a _ r _ | 0x63 0x00 0x68 0x00 0x69 0x00 0x76 0x00 | c _ h _ i _ v _ | 0x65 0x00 0x5c 0x00 0x73 0x00 0x74 0x00 | e _ \ _ s _ t _ | 0x6f 0x00 0x72 0x00 0x65 0x00 0x00 0x00 | o _ r _ e _ _ _ | 0x3f 0x3f 0x3f 0x3f 0x3f 0x00 0x00 0x00 | ? ? ? ? ? _ _ _ | 0x00 0x00 0x00 0x00 | _ _ _ _ fs/cifs/netmisc.c: !!Mapping smb error code 2 to POSIX err -1 !! fs/cifs/connect.c: CIFS Tcon rc = -1 fs/cifs/cifssmb.c: In SMBLogoff for session disconnect fs/cifs/transport.c: For smb_command 116 fs/cifs/transport.c: Sending smb of length 39 | 0x00 0x00 0x00 0x27 0xff 0x53 0x4d 0x42 | _ _ _ ' ÿ S M B | 0x74 0x00 0x00 0x00 0x00 0x00 0x01 0x00 | t _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x04 0x00 0x02 0xff 0x00 0x00 | _ _ _ _ _ ÿ _ _ | 0x00 0x00 0x00 | _ _ _ fs/cifs/connect.c: rfc1002 length 0x2b) | 0x27 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | ' _ _ _ ÿ S M B | 0x74 0x00 0x00 0x00 0x00 0x80 0x01 0x48 | t _ _ _ _ _ _ H | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x04 0x00 0x02 0xff 0x00 0x00 | _ _ _ _ _ ÿ _ _ | 0x00 0x00 0x00 | _ _ _ | 0x27 0x00 0x00 0x00 0xff 0x53 0x4d 0x42 | ' _ _ _ ÿ S M B | 0x74 0x00 0x00 0x00 0x00 0x80 0x01 0x48 | t _ _ _ _ _ _ H | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x70 0x3a | _ _ _ _ _ _ p : | 0x00 0x00 0x04 0x00 0x02 0xff 0x00 0x00 | _ _ _ _ _ ÿ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ | 0x00 0x00 0x00 0x00 | _ _ _ _ fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 11943) rc = -1 CIFS VFS: cifs_mount failed w/return code = -1 I'm forced using CIFS since CIFS is explicitly supported by Netcenter firmware and smbfs stalls and produces input/output errors when accessing multiple files at the same time on the same share.
can you please sniff that one with wireshark and attach here?
Created attachment 2195 [details] net traffic that leads to failed cifs-mount These are the packets on the line when the mount command mount -t cifs -o password=cocostore //192.168.1.8/store /archive/store is executed
Created attachment 2196 [details] net traffic that leads to correct mounted smbfs These are the packets on the line when the mount command mount -t smbfs -o password=cocostore //192.168.1.8/store /archive/store is executed Attachements are to be opened with wireshark
it seems that cifs does not send the correct password to the server, i tried it with environment variable PASSWD and with a credentials file without success. smbfs seems to pass the correct password, no error message is returned.
You have your nas server configured for "share level" security. CIFS support for share level security was added after cifs version 1.40 - could you check what version of the cifs client you are running (modinfo on cifs.ko, or look at he top of the output of "cat /proc/fs/cifs/DebugData").
thanks a lot for this info! i had to use a new kernel, since debian-package of linux-image 2.6.15-1-686 is shipped with cifs.ko version 1.39 debian package of linux-image 2.6.17-2-686 contains the cifs.ko version 1.43 and with this version it finally works!!