Summary: | Samba 3.0.4-r1 screws up mounting 2000/2003 servers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vermyndax <vermyndax> |
Component: | Current packages | Assignee: | Gentoo's SAMBA Team <samba> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | CC: | den_m, vermyndax |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://forums.gentoo.org/viewtopic.php?p=1264167#1264167 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 58090 | ||
Bug Blocks: | 58393 |
Description
Vermyndax
2004-06-21 07:31:07 UTC
_very_ interesting. i don't have servers with win 2k/2003, so i cannot test this myself. I'm (quite :) ) confident that's not a bug, but a feature ;) smb.conf parameters changed, particularly in 'server/client signing' options. Did you tried them? (this is the case if you notice 'CIFS VFS: Send error in SessSetup = -13' in log messages) hth... I can't prove this bug still exists. I re-emerged samba 3.0.4-r1 and tried mounting with CIFS and it worked fine. I'm totally puzzled, but feel free to close this bug unless someone else says it's still valid... i get the same behaviour - smbclient works, smbmount mounts but the mount point disappears and every attempt to access it results in a 'permission denied' message (even for the superuser). I'll try to reemerge samba and report the results. reemerging doesnt help - anything else i can try to help to resolve this? same problem here, 2.4 based kernel, samba 3.0.4-r1 fails, 3.0.2 works. nothing else changed. Especially critical for me as my gentoo based mail server needs the smb mounts to grab it's virus updates. Hmm .. the strange thing is smbfs should be part of the kernel, only the "frontend" tools like mount.smbfs are in samba. Ted: try mounting it as cifs, it might help For more detailed analysis i would need some more information, i.e. turn up the log value in the smb.conf and/or make a strace of the mount command (don't post it online, it could contain passwords and other sensitive information) even in vacation, i'm thinking about you all :) smbfs/cifs are changing both in samba package and vanilla kernel sources. This problem went away for me recompiling the kernel from smp to uniprocessor. 2.4 series, didn't try on 2.6 (i'm on vacation, on the other hand :) ) could you try the ebuild proposed in 58090? It has some 'cautious' CFLAG and kernel integration issues fixed Same Problem here, WinXP WS SP1 as Server, samba-3.0.2a-r2 works fine, samba-3.0.5 shows the problems. System is running kernel 2.6.7. There were no log entries I could attach. I am experiencing the same problem as reported with 3.0.5 now... no log entries here that I can report either. I'm still trying to kick this. Here's an output of log level 10 when I tried to mount the directory as a normal user. The user owns the directory, so that shouldn't be a permissions problem there... INFO: Current debug levels: all: True/10 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 quota: False/0 acls: False/0 doing parameter map to guest = bad user doing parameter security = domain doing parameter password server = kitanah doing parameter encrypt passwords = yes doing parameter smb passwd file = /etc/samba/private/smbpasswd doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 doing parameter dns proxy = no pm_process() returned Yes lp_servicenumber: couldn't find homes set_server_role: role = ROLE_DOMAIN_MEMBER Attempting to register new charset UCS-2LE Registered charset UCS-2LE Attempting to register new charset UTF8 Registered charset UTF8 Attempting to register new charset ASCII Registered charset ASCII Attempting to register new charset 646 Registered charset 646 Attempting to register new charset ISO-8859-1 Registered charset ISO-8859-1 Attempting to register new charset UCS2-HEX Registered charset UCS2-HEX Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE opts: rw opts: noexec opts: nosuid opts: nodev opts: noauto opts: users opts: user opts: credentials=/etc/credentials opts: uid=1000 opts: gid=100 opts: workgroup=RED-ABSTRACT passthrough options 'noexec,nosuid,nodev,noauto,users,user' mount.smbfs started (version 3.0.5) added interface ip=192.168.4.102 bcast=192.168.4.255 nmask=255.255.255.0 internal_resolve_name: looking up kitanah#20 Opening cache file at /var/cache/samba/gencache.tdb tdb(unnamed): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied Attempt to open gencache.tdb has failed. resolve_lmhosts: Attempting lmhosts lookup for name kitanah<0x20> getlmhostsent: lmhost entry: 127.0.0.1 localhost resolve_wins: Attempting wins lookup for name kitanah<0x20> resolve_wins: WINS server resolution selected and no WINS servers listed. resolve_hosts: Attempting host lookup for name kitanah<0x20> remove_duplicate_addrs2: looking for duplicate address/port pairs Opening cache file at /var/cache/samba/gencache.tdb tdb(unnamed): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied Attempt to open gencache.tdb has failed. internal_resolve_name: returning 1 addresses: 192.168.4.2:0 Connecting to 192.168.4.2 at port 445 socket option SO_KEEPALIVE = 0 socket option SO_REUSEADDR = 0 socket option SO_BROADCAST = 0 socket option TCP_NODELAY = 1 socket option IPTOS_LOWDELAY = 0 socket option IPTOS_THROUGHPUT = 0 socket option SO_SNDBUF = 16384 socket option SO_RCVBUF = 16384 socket option SO_SNDLOWAT = 1 socket option SO_RCVLOWAT = 1 socket option SO_SNDTIMEO = 0 socket option SO_RCVTIMEO = 0 7633: session request ok write_socket(3,183) write_socket(3,183) wrote 183 got smb length of 119 size=119 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=49153 smb_tid=0 smb_pid=7633 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[ 0]= 8 (0x8) smb_vwv[ 1]=12807 (0x3207) smb_vwv[ 2]= 256 (0x100) smb_vwv[ 3]= 1024 (0x400) smb_vwv[ 4]= 65 (0x41) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 256 (0x100) smb_vwv[ 7]= 0 (0x0) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]=64768 (0xFD00) smb_vwv[10]= 499 (0x1F3) smb_vwv[11]=34816 (0x8800) smb_vwv[12]=55157 (0xD775) smb_vwv[13]=30917 (0x78C5) smb_vwv[14]=50291 (0xC473) smb_vwv[15]=11265 (0x2C01) smb_vwv[16]= 2049 (0x801) smb_bcc=50 [000] A1 55 47 8F 40 D1 B0 CF 52 00 45 00 44 00 2D 00 .UG.@... R.E.D.-. [010] 41 00 42 00 53 00 54 00 52 00 41 00 43 00 54 00 A.B.S.T. R.A.C.T. [020] 00 00 4B 00 49 00 54 00 41 00 4E 00 41 00 48 00 ..K.I.T. A.N.A.H. [030] 00 00 .. size=119 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=49153 smb_tid=0 smb_pid=7633 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[ 0]= 8 (0x8) smb_vwv[ 1]=12807 (0x3207) smb_vwv[ 2]= 256 (0x100) smb_vwv[ 3]= 1024 (0x400) smb_vwv[ 4]= 65 (0x41) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 256 (0x100) smb_vwv[ 7]= 0 (0x0) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]=64768 (0xFD00) smb_vwv[10]= 499 (0x1F3) smb_vwv[11]=34816 (0x8800) smb_vwv[12]=55157 (0xD775) smb_vwv[13]=30917 (0x78C5) smb_vwv[14]=50291 (0xC473) smb_vwv[15]=11265 (0x2C01) smb_vwv[16]= 2049 (0x801) smb_bcc=50 [000] A1 55 47 8F 40 D1 B0 CF 52 00 45 00 44 00 2D 00 .UG.@... R.E.D.-. [010] 41 00 42 00 53 00 54 00 52 00 41 00 43 00 54 00 A.B.S.T. R.A.C.T. [020] 00 00 4B 00 49 00 54 00 41 00 4E 00 41 00 48 00 ..K.I.T. A.N.A.H. [030] 00 00 .. Serverzone is 18000 SMB signing enabled! cli_simple_set_signing: user_session_key [000] CF 5E A9 1C F3 C6 B8 A3 AE DF 9A 47 4F 95 4E DC .^...... ...GO.N. cli_simple_set_signing: response_data [000] FF 4F 5A 7C 14 1C A9 48 C0 EE 56 44 56 52 98 A3 .OZ|...H ..VDVR.. [010] 46 44 58 88 E1 8B 4E A3 FDX...N. simple_packet_signature: sequence number 0 client_sign_outgoing_message: sent SMB signature of [000] 88 C3 82 1E F1 46 0C 89 .....F.. store_sequence_for_reply: stored seq = 1 mid = 2 write_socket(3,147) write_socket(3,147) wrote 147 got smb length of 103 size=103 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=5 smb_tid=0 smb_pid=7633 smb_uid=55298 smb_mid=2 smt_wct=3 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 103 (0x67) smb_vwv[ 2]= 0 (0x0) smb_bcc=62 [000] 57 69 6E 64 6F 77 73 20 53 65 72 76 65 72 20 32 Windows Server 2 [010] 30 30 33 20 33 37 39 30 00 57 69 6E 64 6F 77 73 003 3790 .Windows [020] 20 53 65 72 76 65 72 20 32 30 30 33 20 35 2E 32 Server 2003 5.2 [030] 00 52 45 44 2D 41 42 53 54 52 41 43 54 00 .RED-ABS TRACT. get_sequence_for_reply: found seq = 1 mid = 2 simple_packet_signature: sequence number 1 client_check_incoming_message: seq 1: got good SMB signature of [000] 79 E8 E9 2F EA 9D F7 B0 y../.... 7633: session setup ok simple_packet_signature: sequence number 2 client_sign_outgoing_message: sent SMB signature of [000] 01 CF C5 8D 7D 6D DC 38 ....}m.8 store_sequence_for_reply: stored seq = 3 mid = 3 write_socket(3,73) write_socket(3,73) wrote 73 got smb length of 49 size=49 smb_com=0x75 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=5 smb_tid=32772 smb_pid=7633 smb_uid=55298 smb_mid=3 smt_wct=3 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 49 (0x31) smb_vwv[ 2]= 1 (0x1) smb_bcc=8 [000] 41 3A 00 4E 54 46 53 00 A:.NTFS. get_sequence_for_reply: found seq = 3 mid = 3 simple_packet_signature: sequence number 3 client_check_incoming_message: seq 3: got good SMB signature of [000] 94 B6 31 0D 26 70 31 43 ..1.&p1C 7633: tconx ok didn't try with 2003 servers, but all other combos are functioning. System: (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11 i686) Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 Binutils: sys-devel/binutils-2.14.90.0.8-r1 ACCEPT_KEYWORDS="x86" May i also ask to not use -march above pentium3, beside the downgrade to stable compiler, libs and tool versions (as per bug #58393)? I re-emerged gcc, glibc, automake, autoconf, binutils and samba to all stable versions. I am still seeing the same results. Now I've reemerged Samba 3.0.5 again with -march=pentium3 Same results. Further info: I lived dangerously and re-emerged my entire system back to the stable tree. I re-emerged Samba 3.0.5-r1 (using package.keywords the way I'm supposed to) and still... no go. Mounting other Linux Samba shares and shares on WinXP works fine, but does not work with Server 2003 at all. No changes were made on the 2003 server between Samba 3.0.2a and 3.0.4-3.0.5-r1. And as reported in the other bug, cifs doesn't work either... but I couldn't get cifs to function in any Samba 3.0.x version at all, honestly. New emerge info after re-emerging the whole system: Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.eliteitminds.com ftp://mirrors.tds.net/gentoo http://adelie.polymtl.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aim alsa apm avi berkdb bonobo cdr cjk crypt cups divx4linux dvb dvd encode esd ffmpeg flac foomaticdb gdbm gif gimpprint glade gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib jabber java jpeg kerberos ldap libg++ libwww mad mikmod mmx motif mozcalendar mozilla moznocompose moznoirc mpeg mpeg4 mplayer msn music ncurses nls nvidia offensive oggvorbis opengl oscar oss pam pdflib perl png python qt quicktime quotes readline samba sdl slang spell sse ssl stencil-buffer svga tcltk tcpd tiff transcode truetype v4l v4l2 videos x86 xml2 xmms xv yahoo zlib" At least, that's a good thing the problem only affects 2003 servers. On some recent bug, there was the suggestion to check the smb signing feature. If you don't already, try using 'client use spnego = no' on global section. (man smb.conf for this). Should it not work, could you send me your samba and kernel confs? as attachments to this bug, or better by mail. If you prefer to encrypt the mail, my gnupg key ID is on http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml. Infos on usage are on http://www.gentoo.org/doc/en/gnupg-user.xml what about the latest 3.0.6-r4? Same error. Trying to access a Win 2003. I can access it via smbclient, but smbmount gives access denied. Mounting as cifs gives mount error 13 = Permission Denied. In all accounts, it appears to mount fine, only gives an error when trying to ls the directory. Information: Using samba version 3.0.7-r1, although 3.0.6-r4 failed as well. Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1700MHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X acpi acpi4linux aim alsa amd apm arts avi ba-completion berkdb bitmap-fonts c++ canna cddb cdparanoia cjk codecs crypt css cups divx4linux dv dvd dvdread encode esd ethereal f77 foomaticdb freewnn gdbm gif gpm gstreamer gtk gtk2 icq imlib jpeg kde kerberos libg++ libwww mad mikmod motif mpeg mplayer msn ncurses nls offensive oggvorbis opengl oscar oss pam pdflib perl png python qt quicktime readline real sdl slang smartcard spell ssl svga tcpd truetype vim-with-x x86 xine xml2 xmms xv xvid yahoo zlib" news with the latest 3.0.9-r1 or 3.0.10 and the newer 2.6 kernels? Well, since you asked... I still cannot get smbfs to work with kernel 2.6.9-r9 and Samba 3.0.9-r1. I can get it to work with cifs though. smbfs results in the same permission denied error after mounting. It's really bizarre. Not going to bother wasting space here. But I've duplicated all the stuff in this thread pretty much. Still problems on W2k3 server. 2.6.9 & 3.0.9 on W2k3 server doesn't even allow smbfs. what's the latest on this bug? I think you can close it. I'm up to samba-3.0.10 and it appears to have been fixed. I'm fairly sure it was an upstream problem at the time. I should mention I'm also running kernel 2.6.10-r6 closing. Thanks (In reply to comment #26) > closing. Thanks Hmm, samba-3.0.14a-r2, trying to mount Win2k3 share, error: cli_negprot: SMB signing is mandatory and we have disabled it. 29844: protocol negotiation failed SMB connection failed I'm trying to play with: client singing client use spnego but results are the same. smbclient - all's right, I can do everything with share, but the smbmount fails to mount. What about this? (In reply to comment #27) > (In reply to comment #26) > > closing. Thanks > > Hmm, samba-3.0.14a-r2, trying to mount Win2k3 share, error: > > cli_negprot: SMB signing is mandatory and we have disabled it. > 29844: protocol negotiation failed > SMB connection failed > > I'm trying to play with: > client singing > client use spnego > > but results are the same. > smbclient - all's right, I can do everything with share, but the smbmount fails > to mount. > What about this? Sorry, fortog to add: mounting share on Win2k server is successfull (the same user). *** Bug 113184 has been marked as a duplicate of this bug. *** *** Bug 113184 has been marked as a duplicate of this bug. *** Reopen wrt Bug 113184. continuing on 113184: the main reason of this bug is different from the one stated here *** This bug has been marked as a duplicate of 113184 *** |