View Full Version : [ubuntu] Sharing files between Ubuntu and Mac OS X
December 16th, 2008, 06:13 AM
Ok, here's what I want to do:
Share a folder with some business files (on my computer, running Ubuntu Hardy) with my sister's Macbook running MAC OS X Leopard. I want her to be able to read/write the files from her computer, and save the changes to my computer over the network. Both computers are on the same wireless network.
I've read a bunch of different guides, but I have little experience with Samba, and I haven't been able to make anything work yet. I've gotten as far as her being able to see the files, but only opening them as read only which isn't enough. Any help would be appreciated! :popcorn:
Also, I want to share a USB printer connected to my computer over the network so she can use it from her Mac, but that's a low priority right now. :)
December 17th, 2008, 12:31 AM
For the file sharing, I would suggest NFS instead of Samba. A guide can be found here: https://help.ubuntu.com/community/SettingUpNFSHowTo
The Mac should be able to detect it once you have it set up.
As for the printer, I would suggest sharing it over CUPS. This would allow the Mac to add an IPP printer. Instructions for Debian (which might also work for Ubuntu) are here: http://forums.debian.net/viewtopic.php?t=10438
Hope this helps.
January 1st, 2009, 06:21 PM
Yeah, those should help me. Thanks! :D
If I understand what you said correctly, I just need to set up the NFS server on my Ubuntu box, and then the Mac will detect my shared files?
If I have any problems, I'll post them here and plead for help some more. :)
January 2nd, 2009, 02:42 AM
Sorry for double-posting, but I'm still running into trouble. Basically, I've tried NFS and gotten an error (the directory I'm sharing doesn't support NFS export), and I haven't been able to get it working with Samba, either. So I'm back to square one.
Normally I'm a bit of a geek, but I just feel like an idiot whenever it comes to setting up networking like this, since I don't know much (hardly anything) about it. Help! :(
January 4th, 2009, 01:27 PM
You should only use NFS in your LAN and only if you consider that your LAN is secure.
Apart from that, the question here is that NFS uses the UNIX id of your user to let or not to let to read/write files. If your uid in Mac OS X is not the same uid in the server, it will not let you to mount the NFS.
I read somewhere to avoid this by setting some flags to the NFS server but it just didn't work for me.
Other chance you have, maybe more simpler, is to use the SMB protocol (the windows share directory and files service). But I simply don't like to use SMB between 2 diferent unixes, it is like... odd to say the least.
You have AppleTalk too, as an option.
Anyway I am looking forward to find something to be able to share NFS between machines independent of the UID.
Sorry for my English, I am not a native speaker.
January 17th, 2009, 07:46 PM
There is a way to make this work: user squashing.
Let's say your mac has user ID 501 (I think OS X sartes IDs from 500), and your UNIX user ID is 1001 (Linux starts from 1000). If you mount with normal options, everything will be owned by 501, so it won't work.
The solution is to squash all user IDs to 1001. In /etc/exports:
Then your user on Linux should have full access.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.