Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58393 - Samba 3.0.5-r1 cannot mount with cifs
Summary: Samba 3.0.5-r1 cannot mount with cifs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on: 54640
Blocks:
  Show dependency tree
 
Reported: 2004-07-26 05:33 UTC by Vermyndax
Modified: 2004-12-18 02:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vermyndax 2004-07-26 05:33:51 UTC
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"
Comment 1 Vermyndax 2004-07-26 05:34:14 UTC
Forgot to mention - smbfs and cifs are compiled into my kernel.
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2004-07-27 02:40:36 UTC
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?
Comment 3 Vermyndax 2004-07-27 08:51:20 UTC
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.
Comment 4 Vermyndax 2004-07-27 09:22:40 UTC
Now I've reemerged Samba 3.0.5 again with -march=pentium3

Same results.
Comment 5 Vermyndax 2004-08-11 19:03:37 UTC
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.
Comment 6 Vermyndax 2004-08-18 11:25:16 UTC
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.
Comment 7 Michael Glauche (RETIRED) gentoo-dev 2004-08-26 02:25:48 UTC
can you try samba-3.0.6 ? it has some cifs fixes it seems 
Comment 8 Vermyndax 2004-12-17 14:54:06 UTC
This bug should be marked fixed or invalid, as higher versions of Samba works properly with CIFS.  Thanks.
Comment 9 Christian Andreetta (RETIRED) gentoo-dev 2004-12-18 02:07:15 UTC
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... :-)