misleading error message if cifs-utils not installed

Bug #1701242 reported by Stefan Helmert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

On Ubuntu 16.04.2: If cifs-utils is not installed the following command gives error messages making no sense:

sudo mount -t cifs -o credentials=~/.credentials //192.168.1.2/austausch /media/austausch

The message is:

mount: wrong fs type, bad option, bad superblock on //192.168.1.2/austausch,
       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.

The dmesg output is:

[2408337.346794] CIFS VFS: No username specified

But the username is specified in .credentials. It should better say: "cifs-utils needed, but not installed - Install it now? [Y/n]"

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mount 2.27.1-6ubuntu3.2
ProcVersionSignature: Ubuntu 4.4.0-81.104-generic 4.4.67
Uname: Linux 4.4.0-81-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jun 29 13:25:41 2017
SourcePackage: util-linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Stefan Helmert (stefan-helmert) wrote :
Revision history for this message
Phillip Susi (psusi) wrote :

That's not something that mount is going to do.

no longer affects: cifs-utils (Ubuntu)
Changed in util-linux (Ubuntu):
status: New → Won't Fix
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.