I'm trying to mount a Windows share on an Ubuntu Server box. It works with smbmount, and with an entry in /etc/fstab.

//Kubrick/Projects    /mnt/projects    smbfs    user=Eric\040Fritz%{pass},rw    0    0

However, when I try to write a credentials file, it always give me a "Permission Denied" error when I try to mount /mnt/projects. Here is the creds file and the new fstab line.

username=Eric Fritz
password={pass}

.

//Kubrick/Projects    /mnt/projects    smbfs    credentials=/root/.creds,rw    0    0

What is the proper way to escape the space in the username when using a credentials file?

link|improve this question
1  
smbfs is deprecated. Try cifs instead. – grawity Aug 25 '11 at 22:31
For some reason, cifs didn't work before - now it does. If you want to change your comment to an answer I can accept it ;) – efritz Aug 25 '11 at 23:02
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.