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