Cannot mount file system that works with smbclient

Bug #903888 reported by Reuben Thomas
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
cifs-utils (Ubuntu)
Fix Released
High
Dave Walker

Bug Description

smbclient -U guest -N "//server/share location"

works fine, but:

$ sudo mount -t cifs -o guest "//server/share location" /mnt
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

dmesg only shows the same error again:

[111147.812171] CIFS VFS: cifs_mount failed w/return code = -22

I have also tried using a user name, with the same success with smbclient, and the same error with mount.cifs.

This used to work under natty. I can find references to a problem with the 3.0 kernel, but I've tried it on an oneiric machine with the latest natty kernel, and get the exact same error.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cifs-utils 2:5.0-1ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Tue Dec 13 19:27:05 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
SourcePackage: cifs-utils
UpgradeStatus: Upgraded to oneiric on 2011-10-07 (66 days ago)

Revision history for this message
Reuben Thomas (rrt) wrote :
Revision history for this message
ScottPurcell (scott-texastwister) wrote :

I'm seeing what may be the same bug (although my error message is different) in Ubuntu 12.04.

smbclient connects immediately:

sudo smbclient //pc1n7i01d03.us.dell.com/dttuatnas2 -A /etc/.smb_creds.txt

But mount.cifs fails (with "mount error(13): Permission denied"):

sudo mount.cifs //pc1n7i01d03.us.dell.com/dttuatnas2 /mnt/ -o credentials=/etc/.smb_creds.txt

my credentials file is formatted as follows (with the proper values, of course) and both smbclient and mount.cifs were instructed to use this file:

username=mynamehere
password=password
domain=MyDomain

I remember on a previous occasion (http://ubuntuforums.org/showthread.php?t=1420895) having resolved a similar problem by including a mount option "noserverino". I've tried that to no effect. I've also tried "sec=ntlmv2"

The syslog contains this message in response to each failed attempt:

CIFS VFS: cifs_mount failed w/return code = -13

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cifs-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

fix for this is available in Debian unstable.

Changed in cifs-utils (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
assignee: nobody → Dave Walker (davewalker)
Jelmer Vernooij (jelmer)
Changed in cifs-utils (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.