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

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:

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <p>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for preventing automated spam submissions. It is case sensitive.
Image CAPTCHA
Enter the characters shown in the image.