On Wed, 5 Mar 2008 14:34:13 -0500 Christopher DeMarco <[EMAIL PROTECTED]> wrote:
> I'm attempting to mount a CIFS share with the following stipulations: > > 1. I must have the UNIX extensions (specfically, symlinks). > > 2. I must use plaintext authentication (don't ask). > > > I've recompiled the cifs kernel module to allow plaintext > authentication, using the stock Ubuntu 7.10 kernel (2.6.22.9c). > > My /etc/fstab line looks like... > > //superman/www-pub /smb/superman/www-pub cifs > auto,uid=33,gid=33,username=WORKGROUP/www-pub,password=sekret,sec=none 0 0 > > > The contents of /proc/fs/cifs/* are as follows: > > :::::::::::::: > DebugData > :::::::::::::: > Display Internal CIFS Data Structures for Debugging > --------------------------------------------------- > CIFS Version 1.49 > Active VFS Requests: 0 > Servers: > Shares: > :::::::::::::: > Experimental > :::::::::::::: > 0 > :::::::::::::: > LinuxExtensionsEnabled > :::::::::::::: > 1 > :::::::::::::: > LookupCacheEnabled > :::::::::::::: > 1 > :::::::::::::: > MultiuserMount > :::::::::::::: > 0 > :::::::::::::: > OplockEnabled > :::::::::::::: > 1 > :::::::::::::: > SecurityFlags > :::::::::::::: > 0x20 > :::::::::::::: > cifsFYI > :::::::::::::: > 7 > :::::::::::::: > traceSMB > :::::::::::::: > 1 > > > The immediate result of ``mount /smb/superman/www-pub'' is... > > mount error 5 = Input/output error > Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) > > ...and I get this in syslog: > > Mar 5 14:28:38 bee kernel: [1723623.069722] fs/cifs/cifsfs.c: Devname: > //superman/www-pub flags: 64 > Mar 5 14:28:38 bee kernel: [1723623.069734] fs/cifs/connect.c: CIFS > VFS: in cifs_mount as Xid: 29 with uid: 0 > Mar 5 14:28:38 bee kernel: [1723623.069747] fs/cifs/connect.c: Domain > name set > Mar 5 14:28:38 bee kernel: [1723623.069760] fs/cifs/connect.c: null user > Mar 5 14:28:38 bee kernel: [1723623.069764] fs/cifs/connect.c: UNC: > \\superman\www-pub ip: 192.70.254.27 > Mar 5 14:28:38 bee kernel: [1723623.069779] fs/cifs/connect.c: Socket > created > Mar 5 14:28:38 bee kernel: [1723623.069957] fs/cifs/connect.c: sndbuf > 16384 rcvbuf 87380 rcvtimeo 0x7fffffff > Mar 5 14:28:38 bee kernel: [1723623.070466] fs/cifs/connect.c: > Demultiplex PID: 17076 > Mar 5 14:28:38 bee kernel: [1723623.070581] fs/cifs/connect.c: Existing > smb sess not found > Mar 5 14:28:38 bee kernel: [1723623.070596] fs/cifs/cifssmb.c: secFlags > 0x20 > Mar 5 14:28:38 bee kernel: [1723623.070603] fs/cifs/transport.c: For > smb_command 114 > Mar 5 14:28:38 bee kernel: [1723623.070610] fs/cifs/transport.c: > Sending smb of length 69 > Mar 5 14:28:38 bee kernel: [1723623.070613] | 0x00 0x00 0x00 0x45 0xff > 0x53 0x4d 0x42 | _ _ _ E \377 S M B > Mar 5 14:28:38 bee kernel: [1723623.070626] | 0x72 0x00 0x00 0x00 0x00 > 0x00 0x01 0xc0 | r _ _ _ _ _ _ À > Mar 5 14:28:38 bee kernel: [1723623.070638] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.070648] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0xb3 0x42 | _ _ _ _ _ _ ³ B > Mar 5 14:28:38 bee kernel: [1723623.070658] | 0x00 0x00 0x01 0x00 0x00 > 0x22 0x00 0x02 | _ _ _ _ _ " _ _ > Mar 5 14:28:38 bee kernel: [1723623.070669] | 0x4c 0x4d 0x31 0x2e 0x32 > 0x58 0x30 0x30 | L M 1 . 2 X 0 0 > Mar 5 14:28:38 bee kernel: [1723623.070681] | 0x32 0x00 0x02 0x4c 0x41 > 0x4e 0x4d 0x41 | 2 _ _ L A N M A > Mar 5 14:28:38 bee kernel: [1723623.070694] | 0x4e 0x32 0x2e 0x31 0x00 > 0x02 0x4e 0x54 | N 2 . 1 _ _ N T > Mar 5 14:28:38 bee kernel: [1723623.070705] | 0x20 0x4c 0x4d 0x20 0x30 > 0x2e 0x31 0x32 | L M 0 . 1 2 > Mar 5 14:28:38 bee kernel: [1723623.070716] | 0x00 > | _ > Mar 5 14:28:38 bee kernel: [1723623.070891] fs/cifs/connect.c: rfc1002 > length 0x54) > Mar 5 14:28:38 bee kernel: [1723623.070902] | 0x50 0x00 0x00 0x00 0xff > 0x53 0x4d 0x42 | P _ _ _ \377 S M B > Mar 5 14:28:38 bee kernel: [1723623.070913] | 0x72 0x00 0x00 0x00 0x00 > 0x98 0x01 0x80 | r _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.070923] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.070935] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0xb3 0x42 | _ _ _ _ _ _ ³ B > Mar 5 14:28:38 bee kernel: [1723623.070946] | 0x00 0x00 0x01 0x00 0x11 > 0x02 0x00 0x01 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.070956] | 0x32 0x00 0x01 0x00 0x04 > 0x81 0x00 0x00 | 2 _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.070966] | 0x00 0x00 0x01 0x00 0x8e > 0x54 0xb8 0x58 | _ _ _ _ _ T ¸ X > Mar 5 14:28:38 bee kernel: [1723623.070976] | 0xfd 0xd3 0x00 0x00 0x2a > 0x34 0x29 0x65 | ý Ó _ _ * 4 ) e > Mar 5 14:28:38 bee kernel: [1723623.070988] | 0xf7 0x7e 0xc8 0x01 0x2c > 0x01 0x00 0x0b | ÷ ~ È _ , _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071000] | 0x00 0x04 0x57 0x4f 0x52 > 0x4b 0x47 0x52 | _ _ W O R K G R > Mar 5 14:28:38 bee kernel: [1723623.071010] | 0x4f 0x55 0x50 0x00 > | O U P _ > Mar 5 14:28:38 bee kernel: [1723623.071025] | 0x50 0x00 0x00 0x00 0xff > 0x53 0x4d 0x42 | P _ _ _ \377 S M B > Mar 5 14:28:38 bee kernel: [1723623.071036] | 0x72 0x00 0x00 0x00 0x00 > 0x98 0x01 0x80 | r _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071046] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071056] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0xb3 0x42 | _ _ _ _ _ _ ³ B > Mar 5 14:28:38 bee kernel: [1723623.071066] | 0x00 0x00 0x01 0x00 0x11 > 0x02 0x00 0x01 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071076] | 0x32 0x00 0x01 0x00 0x04 > 0x81 0x00 0x00 | 2 _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071086] | 0x00 0x00 0x01 0x00 0x8e > 0x54 0xb8 0x58 | _ _ _ _ _ T ¸ X > Mar 5 14:28:38 bee kernel: [1723623.071097] | 0xfd 0xd3 0x00 0x00 0x2a > 0x34 0x29 0x65 | ý Ó _ _ * 4 ) e > Mar 5 14:28:38 bee kernel: [1723623.071108] | 0xf7 0x7e 0xc8 0x01 0x2c > 0x01 0x00 0x0b | ÷ ~ È _ , _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071118] | 0x00 0x04 0x57 0x4f 0x52 > 0x4b 0x47 0x52 | _ _ W O R K G R > Mar 5 14:28:38 bee kernel: [1723623.071129] | 0x4f 0x55 0x50 0x00 0x00 > 0x00 0x00 0x00 | O U P _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071140] | 0x00 0x00 0x00 0x00 > | _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071152] fs/cifs/cifssmb.c: Dialect: > 2 > Mar 5 14:28:38 bee kernel: [1723623.071157] fs/cifs/cifssmb.c: negprot > rc 0 > Mar 5 14:28:38 bee kernel: [1723623.071162] fs/cifs/connect.c: Security > Mode: 0x1 Capabilities: 0xd3fd TimeAdjust: 18000 > Mar 5 14:28:38 bee kernel: [1723623.071168] fs/cifs/sess.c: sess setup > type 0 > Mar 5 14:28:38 bee kernel: [1723623.071176] fs/cifs/sess.c: Negotiating > LANMAN setting up strings > Mar 5 14:28:38 bee kernel: [1723623.071184] fs/cifs/transport.c: For > smb_command 115 > Mar 5 14:28:38 bee kernel: [1723623.071189] fs/cifs/transport.c: > Sending smb: total_len 160 > Mar 5 14:28:38 bee kernel: [1723623.071193] | 0x00 0x00 0x00 0x9c 0xff > 0x53 0x4d 0x42 | _ _ _ _ \377 S M B > Mar 5 14:28:38 bee kernel: [1723623.071204] | 0x73 0x00 0x00 0x00 0x00 > 0x00 0x01 0xd0 | s _ _ _ _ _ _ Ð > Mar 5 14:28:38 bee kernel: [1723623.071216] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071227] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0xb3 0x42 | _ _ _ _ _ _ ³ B > Mar 5 14:28:38 bee kernel: [1723623.071239] | 0x00 0x00 0x02 0x00 0x0a > 0xff 0x00 0x00 | _ _ _ _ _ \377 _ _ > Mar 5 14:28:38 bee kernel: [1723623.071251] | 0x00 0x58 0x40 0x32 0x00 > 0x00 0x00 0x00 | _ X @ 2 _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071263] | 0x00 0x00 0x00 0x18 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071273] | 0x00 0x65 0x00 > | _ e _ > Mar 5 14:28:38 bee kernel: [1723623.071398] fs/cifs/connect.c: rfc1002 > length 0x27) > Mar 5 14:28:38 bee kernel: [1723623.071404] | 0x23 0x00 0x00 0x00 0xff > 0x53 0x4d 0x42 | # _ _ _ \377 S M B > Mar 5 14:28:38 bee kernel: [1723623.071417] | 0x73 0x02 0x00 0x01 0x00 > 0x88 0x01 0x80 | s _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071428] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071439] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0xb3 0x42 | _ _ _ _ _ _ ³ B > Mar 5 14:28:38 bee kernel: [1723623.071476] | 0x00 0x00 0x02 0x00 0x00 > 0x00 0x00 | _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071553] | 0x23 0x00 0x00 0x00 0xff > 0x53 0x4d 0x42 | # _ _ _ \377 S M B > Mar 5 14:28:38 bee kernel: [1723623.071564] | 0x73 0x02 0x00 0x01 0x00 > 0x88 0x01 0x80 | s _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071574] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071583] | 0x00 0x00 0x00 0x00 0x00 > 0x00 0xb3 0x42 | _ _ _ _ _ _ ³ B > Mar 5 14:28:38 bee kernel: [1723623.071593] | 0x00 0x00 0x02 0x00 0x00 > 0x00 0x00 0x00 | _ _ _ _ _ _ _ _ > Mar 5 14:28:38 bee kernel: [1723623.071603] | 0x40 0x06 0x5c 0x67 0xc0 > 0x46 0xfe 0x1b | @ _ \ g À F \376 _ > Mar 5 14:28:38 bee kernel: [1723623.071614] | 0xc0 0x46 0xfe 0x1c 0x01 > 0xbd 0xab 0x7c | À F \376 _ _ ½ « | > Mar 5 14:28:38 bee kernel: [1723623.071624] | 0x43 0x1e 0x01 0x43 0x81 > 0x9c 0x51 0xf4 | C _ _ C _ _ Q ô > Mar 5 14:28:38 bee kernel: [1723623.071634] | 0x80 0x18 0x44 0x70 0x97 > 0x34 0x00 0x00 | _ _ D p _ 4 _ _ > Mar 5 14:28:38 bee kernel: [1723623.071644] | 0x01 0x01 0x08 0x0a 0x12 > 0x89 0x3b 0x36 | _ _ _ _ _ _ ; 6 > Mar 5 14:28:38 bee kernel: [1723623.071681] | _ _ _ _ _ _ ; 6 > Mar 5 14:28:38 bee kernel: [1723623.071687] fs/cifs/netmisc.c: > !!Mapping smb error code 1 to POSIX err -5 !! > Mar 5 14:28:38 bee kernel: [1723623.071693] fs/cifs/misc.c: Null buffer > passed to cifs_small_buf_release > Mar 5 14:28:38 bee kernel: [1723623.071715] fs/cifs/sess.c: ssetup rc > from sendrecv2 is -5 > Mar 5 14:28:38 bee kernel: [1723623.071721] fs/cifs/sess.c: ssetup > freeing small buf d1312800 > Mar 5 14:28:38 bee kernel: [1723623.071726] CIFS VFS: Send error in > SessSetup = -5 > Mar 5 14:28:38 bee kernel: [1723623.071762] fs/cifs/connect.c: cifsd > thread killed > Mar 5 14:28:39 bee kernel: [1723623.203454] fs/cifs/connect.c: No > session or bad tcon > Mar 5 14:28:39 bee kernel: [1723623.203463] fs/cifs/connect.c: CIFS > VFS: leaving cifs_mount (xid = 29) rc = -5 > Mar 5 14:28:39 bee kernel: [1723623.203467] CIFS VFS: cifs_mount failed > w/return code = -5 > > > Mounting the same share using the old smbfs module works, (but I get > no symlinks). Similarly, Mac OS X and Windows XP clients can mount > (with the proper hacks to enable cleartext auth) (but of course get no > symlinks). > > > What is going wrong? And how can I fix it? > > I pushed this patch to Steve ~last may. You might want to check that the kernel you're working with has it. Without it, sec=none doesn't really do what you expect... -- Jeff Layton <[EMAIL PROTECTED]>
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
