Mac and Linux compatibility
lgrover at zoominternet.net
Tue Sep 27 13:29:08 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
>>>> 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.
>> 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 \
> 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.
The problem I reported with NFS shares exported from ubuntu-linux and
mounted on OSX seems to have been fixed by a recent OSX update (I
moved from OSX 10.3.9 to 10.4.2).
(1) I export my home directory (using the nfs kernel server) like this:
(2) When I mounted this share on OSX (my UID is 501), I could browse
subdirectories from the command line (terminal window), but the OSX
file browser complaied about "insufficient access priviledges" and
wouldn't enter subdirectories on the mounted share.
Peter Lieverdink reported a solution involving a map file and the nfs
user space server. I am happy to report that an alternative exists,
at least if the OSX client is on 10.4.2, and the server is running
hoary (with all updates).
I hope this information is useful for someone.
More information about the ubuntu-users