Mac and Linux compatibility
Peter Lieverdink
ubuntu at cafuego.net
Sun Sep 4 03:28:25 UTC 2005
Larry Grover wrote:
> Peter Lieverdink wrote:
>
>> Ben Novack wrote:
>>
>>> On 9/3/05, Larry Grover <lgrover at zoominternet.net> wrote:
>>>
>>>
>>>> Charles Yao wrote:
>>>>
>>>>
>>>>> Is mac and ubuntu compatible? Is it possible to share files and
>>>>> printers?
>>>>>
>>>>> Charles
>>>>>
>>>>
>>>> It's possible to share files using samba or nfs, but we don't use
>>>> either. I will only use samba if I have to cater to a windows pc, and
>>>> we don't have one of those in the house. In theory, OSX supports nfs,
>>>> but I've never been able to get nfs working well between linux and OSX
>>>> (I've spent hours trying -- OSX is the problem, not linux/ubuntu).
>>>
>>>
>>>
>>> I didn't have luck with NFS either, but Samba works fine; I can browse
>>> my Linux shares perfectly from my Macs, and vice-versa. Quick to set
>>> up, too.
>>>
>>> ---BHN
>>>
>>
>>
>> I use NFS between the Linux server and OSX/Linux clients. It works fine,
>> provided you set up user id mapping on the Linux server for the OSX
>> machines. Ubuntu starts with user 1000, OSX with 500.
>
>
> I know this, I've tried this, and I've never gotten it to work properly.
>
> Here's what I've tried:
>
> (1) On the linux (ubuntu) server (192.168.1.101), export my home
> directory. In /etc/exports:
>
> /home/grover \
> 192.168.1.0/255.255.255.0(ro,insecure,all_squash,anonuid=1000,anongid=1000)
>
> My username is grover, my uid is 1000 and my gid is 1000.
>
> (2) On the OSX client, mount the nfs share using the "finder":
>
> Go->Connect to Server
> select "Favorite Server": nfs://192.168.1.101/home/grover
>
> After mouning the nfs share I have access to shared files from the
> command line (terminal), but not from the "finder" (the OSX file
> browser), when I try to access the mounted shared in the finder I get a
> pop-up window with an error message indicating that I do not have
> sufficient access privileges.
>
> So my nfs-exported home directory is accessible on OSX from the command
> line but not from the gui. This is kind of interesting, and really
> weird, but not very useful.
>
> Regards,
> Larry
Weird. With map file, it does work fine here (Network -> Servers ->
server name -> share)
In my /etc/exports:
# MacOS X (need map)
/nfs/server \
10.10.42.83(rw,sync,no_root_squash,map_static=/etc/nfs/osx.map,insecure)
and /etc/nfs/osx.map:
uid 0 0
uid 1-99 -
uid 65534 10000
gid 0 0
gid 1-49 -
gid 80 100
gid 70 1003
gid 65534 10000
ie: I map the user's OSX gid (70) to their Linux gid (1003) and I don't
worry about the UID, as these are shared folders only.
Note that you can't use nfs-kernel-server when using map_static, but
need nfs-user-server.
Admittedly a ugidd on OSX would be VERY useful :-)
- P.
More information about the ubuntu-users
mailing list