Bug 697239

Summary: mount -cifs problems cifs-utils 4.8.1-4.fc14
Product: [Fedora] Fedora Reporter: Paul Loewenstein <paul.loewenstein>
Component: cifs-utilsAssignee: Jeff Layton <jlayton>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: jlayton, ssorce, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-17 18:37:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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".