I ran across this issue today and found that when the cifs.ko module is
loaded /proc/fs/cifs/SecurityFlags is set differently (0x81) than
previous versions of Ubuntu (0x7).  Changing the parameter allowed me to
connect properly:

echo 0x7 > /proc/fs/cifs/SecurityFlags
cat /proc/fs/cifs/SecurityFlags

The following explains the use of the parameter:
https://www.kernel.org/doc/readme/fs-cifs-README

I did a bit of searching, but wasn't able to find a clean way of setting
it at boot since on this system I'm not sure that the cifs module will
be loaded at boot.  I haven't looked at the source, but I'm guessing
it's hard coded.

Not that it's relevant here, but my need for the functionality was so
XCP could properly mount CIFS shares.  To solve my issue, since I
couldn't do it at boot, was to patch /usr/lib/xcp/xm/ISOSR.py with the
following patch:

--- ISOSR.py.orig     2013-04-09 21:46:13.734220000 -0600
+++ ISOSR.py     2013-04-09 21:46:13.734220000 -0600
@@ -264,6 +264,9 @@
             f.write("username=%s\npassword=%s\n" % (username,password))
             f.close()           
             credentials = "credentials=%s" % self.credentials           
+            f = open('/proc/fs/cifs/SecurityFlags', 'w')
+            f.write('0x7')
+            f.close()
             mountcmd.extend(["-o", credentials])
 
     def _cleanupcredentials(self):

Hope this helps.

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

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to