Mounting CIFS/SMB in fstab fails with “CIFS VFS: No username specified” in syslog
So you have a line in your /etc/fstab like:
//drobo-2.dynhost.lala.com.au/nsbackup /mnt/nsbackup cifs credentials=/root/.smbcredentials,noauto 0 0
and /root/.smbcredentials contains
user=username
password=pass
and you see the error above in your syslog? Try installing the package cifs-utils!
frankiejr 3:18 pm on July 15, 2011 Permalink
I don’t think I can count how many times I’m saying “Thank You” out loud over and over again right now. I’m fairly new to the Linux thing and have been trying to learn something new on Natty every day. Tonight I was trying to get a network drive auto-mounted for future use, and none of the documentation anywhere was helping. Your suggestion did the trick.
So I’ll say it again: Thank You!
dasarne 5:06 am on July 17, 2012 Permalink
You helped me, too.
Chris 1:26 pm on November 4, 2012 Permalink
Nailed it! Thanks cifs-utils was my problem too
Gregory O 4:52 pm on November 12, 2012 Permalink
Spot on, thank you. I don’t even need the ‘user=’ line, since I’m mounting using the same username as my login on the client computer.
Paul 10:42 am on December 8, 2012 Permalink
OMG – that was all, must have just simply forgotten it, but THANK YOU!!
Bob Roberts 12:21 pm on December 16, 2012 Permalink
Hey thanks pal.
Ermir 6:12 pm on February 1, 2013 Permalink
Thanks a lot. I was also facing the same problem.
Fons D. 8:20 pm on March 7, 2013 Permalink
This did the trick!
Thank you!!
Emmanuel 7:47 am on November 25, 2013 Permalink
Thank you!
Ken 8:44 pm on October 26, 2014 Permalink
Thanks! Last week I had a little accident and removed the cifs-utils package from the server because I was typing in the wrong terminal. I thought I had reinstalled it, but I hadn’t really. Thanks again.