[Pkg-samba-maint] Bug#455479: failed to mount smbfs shares: mount error 13 = Permission denied

Steve Langasek vorlon at debian.org
Wed Dec 12 09:04:02 UTC 2007


forcemerge 369495 455479
thanks

On Mon, Dec 10, 2007 at 12:09:24PM +0100, Tim Rühsen wrote:
> Am Montag, 10. Dezember 2007 schrieb Steve Langasek:
> > On Mon, Dec 10, 2007 at 11:51:39AM +0100, Tim Ruehsen wrote:
> > > mounting shares via smbfs (also tried cifs - same problem) result in:
> > > mount error 13 = Permission denied

> > > the systems to mount are different linux systems:
> > > - current stable
> > > - 6 years old unstable
> > > - SuSE 7.1

> > > downgrading just smbfs to 3.0.27a-1 completely removes the problem.
> > > (dpkg -i --force-all smbfs_3.0.27a-1_i386.deb)

> > > my fstab entries look all the same (for example):
> > > //dev-3/dev    /network/dev-3/dev  smbfs     
> > > credentials=/etc/credentials.oms,uid=oms,gid=users,noauto,user

> > > the permissions for /network/dev-3/dev are 0777.
> > > i could not track the problem down (strace, changing permissions on the
> > > credential file, trying with different users incl. root, changed options)

> > By any chance, to you have spaces before or after the equal sign in your
> > credentials file?

> Whow, good point. You just found the problem:
> having a space before the username produces the error.
> having a space before the password seems to be ok.

Ok, then this becomes an instance of bug #369495; merging.

Unfortunately, I have to say that the mount.cifs semantics are the more
correct because whitespace (including leading whitespace) is significant in
passwords and trimming whitespace therefore makes it impossible to represent
some possible passwords in credentials files.  So this bug is "wontfix" as
far as fully supporting the old syntax, but there is an open request for
improved documentation.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org





More information about the Pkg-samba-maint mailing list