[Bug 1113395] Re: mount.cifs on 13.04 fails to mount a samba share with 13: Permission Denied

FBachofner felix at bachofner.com
Fri Oct 10 11:02:27 UTC 2014


I have had this problem on various networks which needed samba
filesharing services from an Ubuntu or LinuxMint-based file server.

In every  case, while the user's samba account had a password and
allowed browsing (and manipulating files) of a share through a file
manager, fstab mounts did not work.

This is regardless of having set sec=ntlm or sec=ntlmv2 or sec=ntlmssp
or any of the various other options typically offered as a "solution"
(i.e. such as setting the file_mode or user or gid)

In every case the solution for our installations has ended up being the
same: reset the samba user's password and the mount works, regardless of
setting options!

I'm not sure what happens when the password is "inherited/converted"
from the user's Linux account, but there seems to be a significant
problem there, notwithstanding the ability to browse (not mount) a samba
share.

Perhaps this approach will help you with your fstab samba mounting
challenge.  I hope so and good luck.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cifs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1113395

Title:
  mount.cifs on 13.04 fails to mount a samba share with 13: Permission
  Denied

Status in “cifs-utils” package in Ubuntu:
  Confirmed

Bug description:
  I mount my samba shares with the following command:

  sudo mount -t cifs -o user=admin,password=very.long.password.with.dot
  //server/sharename /pub/disk

  On 12.10, the command works flawlessly and correctly mounts the share.
  After I upgraded to 13.04, the command no longer worked and always
  produced the following output:

  mount error(13): Permission denied
  Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

  Note that accessing the samba mount with krusader works correctly (I have to input the username/password of course).
  I am no longer on Ubuntu 13.04 so I cannot provide exact versions of packages. But the error is reproducible on a fully updated Ubuntu 13.04 x86-32. My guess is that the error occurs because the password contains a dot character and the -o parameter gets parsed incorrectly. Or perhaps the password is too long (27 characters).
  Thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/1113395/+subscriptions



More information about the foundations-bugs mailing list