I've had major problems with every version of Samba above 3.0.2a-r2. Since 3.0.5 came out, I decided to give it a shot. I upgraded successfully, then noticed: a. The smbfs mounting problem described in bug <a href="http://bugs.gentoo.org/show_bug.cgi?id=54640">53640</a> came back. b. I cannot mount anything as cifs. In my /etc/fstab, I have a line: //kitanah/home /home/vermyndax/mnt/KITANAH/home cifs credentials=/etc/credentials,uid=1000,gid=100,workgroup=RED-ABSTRACT,noauto,rw,users 0 0 ...my /etc/credentials file is in the documented format of: username=vermyndax password=<password> ...but when I try to mount with "mount //kitanah/home", I get: "missing or invalid username". This also happens if I replace "credentials=/etc/credentials" with "username=vermyndax,password=<password>" in /etc/fstab. Since 3.0.5 cannot mount smbfs because of the previously filed bug against 3.0.4, Samba is effectively completely broken for me. Downgrading to 3.0.2-r2 allows me to mount with smbfs again, but cifs still doesn't work with the same error. FWIW, I'm trying to mount shares on three different machines... Windows 2003, Windows XP SP1, and another Linux machine running Samba. All shares work fine with 3.0.2a, but only the Linux Samba shares work with >=3.0.4. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: It would be nice if I could mount with either smbfs or cifs with any version of Samba above 3.0.2a. emeerge info: Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r8) ================================================================= System uname: 2.6.7-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~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="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ ftp://mirrors.tds.net/gentoo" 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"
Forgot to mention - smbfs and cifs are compiled into my kernel.
why ACCEPT_KEYWORDS="x86 ~x86"? This way, you're using unstable gcc, glibc, automake, autoconf (their versions are the development ones, not the stable). Also, could you try -march=pentium3? Gcc has lately been buggy with pentium4 assembly opts. Could you downgrade to ACCEPT_KEYWORDS="x86", enabling ~x86 for samba and only few selected packages?
Okie, I have downgraded all packages to stable versions: gcc, glibc, binutils, automake, autoconf I also re-emerged Samba to the stable version of samba-3.0.5 (not r1). I am seeing the same results.
Now I've reemerged Samba 3.0.5 again with -march=pentium3 Same results.
More to the ongoing mystery... I completely reformatted this box and reinstalled under all stable packages - only unstable package I have is the NVidia drivers. Now, I can mount successfully on another Samba machine with smbfs, but smbfs again fails on the 2003 machine. Strangely enough however, using the same parameters, I can now successfully mount on the 2003 with cifs. Nothing has changed on the 2003 server during this time. Odd.
Yet another little bit of info... I am able to mount with cifs with a mount defined in /etc/fstab as root (even with the credentials file). However, even if I specify 'user' or 'users' in /etc/fstab and try to mount as a user, that's when I get "missing or invalid username" and it seems to completely ignore the credentials file as stated in the fstab file. I've checked permissions on the credentials file and the user account does have permission to read it.
can you try samba-3.0.6 ? it has some cifs fixes it seems
This bug should be marked fixed or invalid, as higher versions of Samba works properly with CIFS. Thanks.
that's very good news. Anyway, kernel support is always needed both for cifs and smbfs, so new kernel versions could always say the last words... :-)