LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This 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


Reply
  Search this Thread
Old 03-26-2005, 10:40 PM   #1
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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.

Thanks in Advance
--Ian
 
Old 03-27-2005, 03:40 PM   #2
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
I'd try samba in both.
 
Old 03-27-2005, 06:12 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 03-27-2005, 10:25 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Original Poster
Rep: Reputation: 62
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??

Thanks Again
--Ian
 
Old 03-28-2005, 04:25 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Use the non-privileged ports (>1024) to share as NFS with the insecure option
Code:
/home/share 192.168.1.1(rw,no_root_squash,insecure)     /*The other Linux Box*/
/home/share 192.168.1.4(rw,no_root_squash,insecure)     /*My Laptop*/
Then browse to "nfs://192.168.1.2/home/share" with the Finder
works fine...
 
Old 03-29-2005, 10:51 AM   #6
pevelius
Member
 
Registered: Mar 2004
Location: Tampere, Finland
Distribution: Debian, Familiar, OS X
Posts: 145

Rep: Reputation: 16
for some reason (my stupidity?) i only get read-permission on the shared forlder (folder on linux, mounted to os x). what can i do to get rw?
 
Old 03-29-2005, 02:09 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Set up user permissions in linux and osx boxes so they match

Example :

user pevelius in linux box uid is : 501
user pevelius in osx box uid is : 501

exported FS from linux is /home/pevelius as rw

You access the share in osx with <command> +k and browse to
nfs://<linux box>/home/pevelius

Now an icon appears in Desktop and you can write in the mounted folder
 
Old 03-31-2005, 10:37 AM   #8
pevelius
Member
 
Registered: Mar 2004
Location: Tampere, Finland
Distribution: Debian, Familiar, OS X
Posts: 145

Rep: Reputation: 16
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

Last edited by pevelius; 03-31-2005 at 10:40 AM.
 
Old 03-31-2005, 11:51 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
try this :
Code:
find /home/pevelius -uid 500
To set all your 500 uid files to your uid:
Code:
find /home/pevelius -uid 500 -exec chown pevelius {} \;
(run the 2nd as root)
 
Old 12-20-2007, 10:36 AM   #10
saigiridhar
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Rep: Reputation: 0
Similar problem

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).
 
Old 12-26-2007, 05:11 AM   #11
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
http://patrick295767.pa.funpic.org/debian/howtos.htm
 
Old 12-26-2007, 07:20 PM   #12
saigiridhar
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Rep: Reputation: 0
Hi patrick

The link File server for Linux and MAC (via nfs)(http://forums.debian.net/viewtopic.p...ighlight=samba) has been mved or expired so i couldn't see what it is.Can u please post it here so that i can view it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing files in linux TigerLinux Linux - Software 2 11-25-2005 12:07 AM
Sharing files between Windows and Linux bradab Linux - Newbie 3 09-27-2005 04:27 PM
Sharing Files between linux and windows invinciblegod Linux - General 4 07-27-2005 11:54 AM
linux and win xp sharing files..? dejan_j Linux - Networking 3 05-09-2003 09:18 AM
Sharing files between Win2000 and Linux Kailan Linux - General 4 05-03-2001 07:53 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration