mounting a cifs - filesystem failed using a credential file with username & password. This credential file itself seems to be ok because mounting the share as smbfs works. nhh221 ~ # mount -t cifs //<snip>/<snip> /mnt/office/public -o auto,uid=1000,gid=100,credentials=/home/<snip>/.smbcredentials mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) works not ! nhh221 ~ # mount -t cifs //<snip>/<snip> /mnt/office/public -o auto,uid=1000,gid=100,username=<snip>,password=<snip> works ! nhh221 ~ # mount -t smbfs //<snip>/<snip> /mnt/office/public -o auto,uid=1000,gid=100,username=<snip>,password=<snip> opts: rw opts: uid=1000 opts: gid=100 opts: username=<snip> opts: password=<snip> mount.smbfs started (version 3.0.10) added interface ip=<snip> bcast=<snip>.255 nmask=255.255.255.0 resolve_lmhosts: Attempting lmhosts lookup for name <snip><0x20> resolve_wins: Attempting wins lookup for name <snip><0x20> resolve_wins: WINS server resolution selected and no WINS servers listed. resolve_hosts: Attempting host lookup for name <snip><0x20> Connecting to <snip> at port 445 works ! Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.70GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 10:05:27)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts cddb cdparanoia cdr crypt cups curl dvd dvdr dvdread emboss encode esd ethereal f77 fam flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib innodb ipv6 java joystick jpeg junit kde ldap libg++ libwww live mad mbox mikmod mmx mmx2 mng motif mozilla mpeg mysql nagios-dns nagios-ntp nagios-ping nagios-s ncurses network nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline rtc samba scanner sdl slang snmp spell sse sse2 ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb xfs xml2 xmms xv zlib linguas_de" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
fixed : http://bugme.osdl.org/show_bug.cgi?id=4307
Great. I'll leave it for the official developers to get the functionality into the kernel tree.
there is a fix available : http://bugme.osdl.org/show_bug.cgi?id=4307#c7
Ok, its a samba fix as opposed to a kernel patch.
Samba people: The fix for this bug is client-side in the samba mounter program. Theres a patch here: http://bugme.osdl.org/show_bug.cgi?id=4307#c7 I'll leave it up to you to decide if you want to patch now or wait for 3.0.13. Thanks.
I think I'll leave it for 3.0.13 version. many thanks for the upstream signalling (and fix).