Mounting cifs Shares in Ubuntu

linux osx ubuntu

As previously mentioned, I've got a mac mini set up as a fileserver. That's not very useful if I can't easily get at the files from my linux machine. While Kubuntu fully supports browsing samba shares via smb:/machinename , that doesn't work with most linux apps.

My first attempt was to mount the shares using smbfs, which worked okay for browsing in a terminal, but which managed to hang amarok when I tried adding them to my collection. Not cool. Instead, I'm now mounting them as cifs shares, which works much better.

First, I created a new user called "media", that isn't actually allowed to log in (shell is set to /bin/false). Then I added that user and my own user account to the "media" group so I can actually read and write the share.

in /etc/fstab:

// /mnt/music cifs rw,nosetuids,
   nouser,noexec,nosuid 0 0

(the options should not be broken across multiple lines, that's for formatting only.)

That specified a lot of options. Here's the breakdown:

Finally, set up the CIFS credentials in the file referenced: