Hardy and SMBFS — A Change of Syntax?

As I’ve made known here previously, I am one of those “dangerous-but-not-really-very-knowledgeable” types, particularly when it comes to the command line and certain config setups in Ubuntu.  That said, I found a solution to the problem I was having with mounting my server using smbfs.  I thought I would post it for the Google-pilgrims that might need a hand in the future…

Ever since Dapper, I have had a line in my /etc/fstab that looked like this:

//<server IP>/<share> /home/jason/Server cifs credentials=<credentials file>,lfs,dmask=777,fmask=777  0    0

This stopped working in Hardy.  After installing smbfs, the share would still mount, but I would get errors saying the following:

WARNING: 'dmask' not expressed in octal.
WARNING: CIFS mount option 'dmask' is deprecated. Use 'dir_mode' instead.
WARNING: 'fmask' not expressed in octal.
WARNING: CIFS mount option 'fmask' is deprecated. Use 'file_mode' instead.

I could read everything from the server, but I had lost my permission to write there.  After finding this bug that was filed at the end of March, I thought, “what the hell, I’ll try mounting the way this guy’s doing it:

//<server IP>/<share> /home/jason/Server cifs credentials=<credentials file>,lfs,file_mode=0777,dir_mode=0777,uid=1000,gid=1000 0 0

And now all is well.  DVD playback– fixed.  Server share– fixed.  What else did I need?  Oh, right, nothing.

Ya-ay.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.