[Samba] Problem mounting with credentials file

Jonathan Duncan jonathan at nacnud.com
Thu Oct 26 05:19:41 GMT 2006

I am running Gentoo.  I am trying to get my /etc/fstab to automatically 
mount a remote Samba share at boot time.  I have the following in my 
/etc/fstab file:

//  /mnt/share  cifs 
auto,credentials=/home/user/.smbpasswd,uid=1000,umask=002,user  0 0

This works fine if I specify the username and password in the /etc/fstab 
file.  However, if I try to use the credentials file option I get:

CIFS VFS: No username specified

The credential file looks like this:
-rw-------   1 root     wheel   34 Oct  9 22:01 .smbpasswd

The contents look like this:

What am I doing wrong?


More information about the samba mailing list