[Pkg-samba-maint] Bug#518113: smbfs: mount.cifs fails with mount error(22): Invalid argument if server has multiple ip addresses

Benoit Panizzon bp at imp.ch
Wed Mar 4 08:00:51 UTC 2009


Package: smbfs
Version: 2:3.3.1-1
Severity: normal


Hi.

It took me quite some time to figure out what the cause was:

/sbin/mount.cifs //server/share mointpoint --verbose -o user=username,noperm
parsing options: user=username,noperm
Password:

mount.cifs kernel mount options unc=//server\share,pass=******,ver=1,user=username,noperm,uid=1024,gid=100
mount error(22): Invalid argument

Now 'server' has an ipv4 and an ipv6 address.

If I pass options -o user=user,ip=servername,noperm the same error 22 is risen.

If I pass options -o user=user,ip=ipv4-address-of-server,noperm the mount is successfull.

I didn't test if this is just ipv6 related, or just happens if a server has multiple Address records.

This does not happen with mount.cifs from etch or lenny, then only the ipv4 address is being tried and it works 
without specifying an ip= option.

Kind regards
-Benoit-

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (500, 'oldstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.7 (SMP w/1 CPU core)
Locale: LANG=de_CH, LC_CTYPE=de_CH (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages smbfs depends on:
ii  libc6                2.9-4               GNU C Library: Shared libraries
ii  libcap2              2.16-2              support for getting/setting POSIX.
ii  libcomerr2           1.41.3-1            common error description library
ii  libkeyutils1         1.2-10              Linux Key Management Utilities (li
ii  libkrb53             1.6.dfsg.4~beta1-9  Transitional library package/krb4 
ii  libldap-2.4-2        2.4.15-1            OpenLDAP libraries
ii  libpopt0             1.14-4              lib for parsing cmdline parameters
ii  libtalloc1           1.2.0~git20080616-1 hierarchical pool based memory all
ii  libwbclient0         2:3.3.1-1           Samba winbind client library
ii  netbase              4.34                Basic TCP/IP networking system
ii  samba-common         2:3.3.1-1           common files used by both the Samb

smbfs recommends no packages.

Versions of packages smbfs suggests:
ii  smbclient                     2:3.3.1-1  command-line SMB/CIFS clients for 

-- no debconf information





More information about the Pkg-samba-maint mailing list