Ubuntu – How to mount Mac OS X Lion fileshare

macosxsamba

How can I mount OS X 10.7 Lion shares on my Ubuntu box (10.10, 11.4)?

Since OS X 10.7 Lion update, network integration with Ubuntu is a nightmare. Previously we could print on OSX printers and mount OSX file shares in a snap, using SMB/CIFS.

Now I got to print on OSX Lion printers using CUPS and IPP sharing… DONE! no samba: it works.

Worst I cannot anymore access files on OS X Lion shares (it was OK up to Snow Leopard).

Exactly from Nautilus I can still browse the OSX server shares, mount one of them (using Nautilus and smb:// URL), I can even browse all the share's directory tree, but whenever I try to open a file (even for read-only)

I receive the error

Impossible to open file <<smb://<host>/<share>/<file-path>> Unexpected error: Function not implemented

(this is Konqueror);

When trying to mount.cifs, it reports to me

root@UL30AL64:/home/fmoli# mount.cifs //<host>/<myshare> /media/gw-fm -o user=<myname>,password=<mypwd>,nounix,noserverino,sec=krb5
mount error(126): Required key not available
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Rumours in the net tell that SAMBA4 is the recipe for Linux/Ubuntu.
But I tried to set-up samba4 without any luck (very lack of guides around…)

Other ones suggest to install netatalk on Ubuntu. But netatalk is a "server-only" package: I need to mount OSX shares on Ubuntu, not Ubuntu shares on OSX !

Best Answer

With reference to this post in Apple discussion community, you can try to mount with additional two options: nounix,sec=ntlmssp

I've tried that, it works properly:

mount.cifs //192.168.0.x/public /mnt/public -o user=myusername,password=mypassword,nounix,sec=ntlmssp,noperm,rw