[Bug 594420] [NEW] The mount command in Ubuntu 10.04 does not recognize the credentials keyword for cifs filesystems in the /etc/fstab file

SanjayPethe sanjay_pethe at yahoo.com
Tue Jun 15 03:02:32 UTC 2010


Public bug reported:

Binary package hint: util-linux

I had altered the /etc/fstab to automount some samba shares at bootup. I
had set up a credentials file with the username and password in each
users account. This worked fine in Ubuntu 9.10, but has not worked since
I upgraded to 10.04.

I believe the problem is that the mount command in 10.04 does not
recognize the credentials keyword. For example, with the following line
in my /etc/fstab file:

//192.168.0.110/user1  /home/user1/Network  cifs
credentials=/home/user1/.smbcredentials  0  0

and the following .smbcredentials file in /home/user1:

username=user1
password=password1

I get the following error on issuing a mount -a command:

user1 at User1-Laptop:~$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on //192.168.0.110/user1,
       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


Altering the /etc/fstab file to the following works perfectly:
//192.168.0.110/user1  /home/user1/Network  cifs  username=user1, password=password1  0  0

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mount 2.17.2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Mon Jun 14 21:44:45 2010
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: util-linux

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid

-- 
The mount command in Ubuntu 10.04 does not recognize the credentials keyword for cifs filesystems in the /etc/fstab file
https://bugs.launchpad.net/bugs/594420
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to util-linux in ubuntu.




More information about the kernel-bugs mailing list