Tony's ramblings on Open Source Software, Life and Photography

cifs

Mounting Windows Shares with "credentials"

I had a hard time using the following line in my fstab until I finally realized the problem:

//winserver/incoming /home/outgoing cifs uid=me,credentials=/etc/smbpassfile,noauto,user 0 0

The mount would fail, and my DMESG would report:

[2492180.882826]  CIFS VFS: No username specified
[2492180.882857]  CIFS VFS: cifs_mount failed w/return code = -22

Doing a mount passing the username and password directly would work just fine. Turns out I was missing the following package:

sudo apt-get install smbfs

Categories: