Bug 697239 - mount -cifs problems cifs-utils 4.8.1-4.fc14
Summary: mount -cifs problems cifs-utils 4.8.1-4.fc14
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: cifs-utils
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jeff Layton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-17 04:56 UTC by Paul Loewenstein
Modified: 2014-06-18 07:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-17 18:37:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paul Loewenstein 2011-04-17 04:56:55 UTC
Description of problem:

mount -t cifs does not work with credentials=file and does not resolve server name using wins name resolution (despite being wins specified in hosts line in nsswitch.conf and is working (e.g. ping wins-name).

Version-Release number of selected component (if applicable):


How reproducible:  Totally (at least on my system)

Maybe this is two bugs, but I'm too timid to submit two at once on my first day.

Steps to Reproduce:

Problem 1:
1. generate file with lines user="user" and password="password"
2. mount -t cifs -o credentials=file,nocase //ip-address/share

Problem 2:
1. mount -t cifs -o user="user",password="password",nocase //servername/share

Results of 2 are identical except for "No username specified" line in dmesg is not logged.
  
Actual results:
mount: wrong fs type, bad option, bad superblock on //192.168.1.67/Paul,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
last two lines of dmesg | tail:
[ 1396.447984] CIFS VFS: No username specified
[ 1396.447996] CIFS VFS: cifs_mount failed w/return code = -22


Expected results:

Successful mount

Additional info:

Comment 1 Jeff Layton 2011-04-17 13:19:50 UTC
> 
> Results of 2 are identical except for "No username specified" line in dmesg is
> not logged.
> 
> Actual results:
> mount: wrong fs type, bad option, bad superblock on //192.168.1.67/Paul,
>        missing codepage or helper program, or other error
>        (for several filesystems (e.g. nfs, cifs) you might
>        need a /sbin/mount.<type> helper program)
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
>

Can you post the output of this command?

    $ stat /sbin/mount.cifs

I suspect that you don't have cifs-utils installed...

Comment 2 Paul Loewenstein 2011-04-17 18:37:04 UTC
stat /sbin/mount.cifs
stat: cannot stat `/sbin/mount.cifs': No such file or directory

You are right; I didn't even consider that as a possibility, as I managed to mount using IP address and username/password.  I failed to notice the lack of a checkmark in the box when I examined the version using "Add/Remove Software".


Note You need to log in before you can comment on or make changes to this bug.