Other *NIXThis forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Sharing files between Linux and OS X
Hi,
I have a desktop computer running Slackware Linux 9.1, and a Apple Powerbook running OS X 10.3. They are networked together, and both can access the internet.
I have nfs set up on the Linux Box, with a share directory that is currently shared with another linux box on my network. Is it possible to access the share directory from my Mac Laptop ? How would I go about doing this.
I have tried to use the Finder in OS X, to connect to server "nfs://192.168.1.2/home/share"
I have tried using the command in the Terminal "sudo mount_nfs 192.168.1.2:/home/share ./share" where /Users/iball/share is where I want to mount the share directory to.
I have tried using NFS Manager.
However, none of these things work. I suspect that this may be a config problem on my laptop, because the share directory is accessible from the other linux box.
Here is /etc/exports from the Linux box:
Code:
/home/share 192.168.1.1(rw,no_root_squash) /*The other Linux Box*/
/home/share 192.168.1.4(rw,no_root_squash) /*My Laptop*/
Here is /etc/hosts.allow
Code:
portmap: 192.168.1.1
portmap: 192.168.1.4
and here is /etc/hosts.deny
Code:
portmap:ALL
Note that my linux box is at 192.168.1.2, and that the above config files work with sharing files to the other linux box, running Mandrake 10.
Samba is a possibility, but NFS ought to work. Do you get any error messages when you try the nfs_mount command? You can try running rpcinfo -p 192.168.1.2 from the Mac laptop (hopefully they provide rpcinfo) to see if you can make RPC connections to the Linux system.
I once had to do something like this, but it was long ago (Mac OS 10.1, when that was current) -- it took some work, but I got it set up in the end.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Original Poster
Rep:
Thanks for your help.
I got samba to work successfuly, so I don't really need to bother with NFS anymore. I thought Samba was for file sharing with Windows machines though??
i tried that (i changed my uid on linux to 501 as that is the default on os x). mounting nfs worked rw, but changing uid had some consecuenses: i couldnīt use screen, for example. so, what other problems will come and is there a smarter way to change uid so that it doesnīt affect my linux use? i changed it now with >usermod -u 501 username
I'm having some similar such problems. I want to mount a directory in RHEL5 on MAC OS X(tiger). Help me with either nfs(I couldn't add fstab entry as no such file was there in /etc folder only fstab.hd was found) or samba(I'm ignorant of this please help from basics).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.