Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 26, 2008, 12:24 PM   #1
whitehexagon
macrumors regular
 
Join Date: May 2007
Connecting from Leopard to FreeBSD7

I'm really having some problems connecting these two boxes. I had sftp kinda working for a while, at least small text files, big files seemed to get created at 0 bytes.

But what I'm really trying to get working is NFS or possibly even SMB so that leopard can read/write to the freebsd box.

This is as far as I got so far for NFS:

mac user is id is (peter)501, staff 20
I created a user on bsd box id is (zfs)501, staff 20
I have an /etc/exports entry for:
/data/shared -mapall=zfs -alldirs -network 192.168.0.0 -mask 255.255.0.0

osx box: 192.168.0.44 (connected 1000Mb to a dlink dir 655)
bsd box: 192.168.1.39 (connected 100Mb to a netopia router)
I have a network cable going from one router to the other.

a showmount -e on bsd gives:
Exports list on localhost:
/data/shared 192.168.0.0

From osx I try to 'connect to server' using the following:

nfs://192.168.1.39/data/shared

which eventually results in:

"could not connect to server because the name or password is not correct"

Any help would be really appreciated!

cheers

Peter
whitehexagon is offline   0 Reply With Quote
Old Apr 26, 2008, 01:42 PM   #2
oblomow
macrumors Demi-God
 
oblomow's Avatar
 
Join Date: Apr 2005
Location: Netherlands
Send a message via AIM to oblomow
Quote:
Originally Posted by whitehexagon View Post
I'm really having some problems connecting these two boxes. I had sftp kinda working for a while, at least small text files, big files seemed to get created at 0 bytes.

But what I'm really trying to get working is NFS or possibly even SMB so that leopard can read/write to the freebsd box.

This is as far as I got so far for NFS:

mac user is id is (peter)501, staff 20
I created a user on bsd box id is (zfs)501, staff 20
I have an /etc/exports entry for:
/data/shared -mapall=zfs -alldirs -network 192.168.0.0 -mask 255.255.0.0

osx box: 192.168.0.44 (connected 1000Mb to a dlink dir 655)
bsd box: 192.168.1.39 (connected 100Mb to a netopia router)
I have a network cable going from one router to the other.

a showmount -e on bsd gives:
Exports list on localhost:
/data/shared 192.168.0.0

From osx I try to 'connect to server' using the following:

nfs://192.168.1.39/data/shared

which eventually results in:

"could not connect to server because the name or password is not correct"

Any help would be really appreciated!

cheers

Peter
add nfs_reserved_port_only to NO in /etc/rc.conf on your bsd box
and restart the services

but why don't you install samba on the bsd box, saves you the trouble from mapping accounts (on both machines). And it's much safer since nfs ( version < 4) uses client side authentication, samba uses
server side authentication.

Last edited by oblomow; Apr 26, 2008 at 02:08 PM. Reason: typo in command
oblomow is offline   0 Reply With Quote
Old Apr 26, 2008, 05:27 PM   #3
whitehexagon
Thread Starter
macrumors regular
 
Join Date: May 2007
I tried that now, but still no luck on the NFS side.

I tried again with the samba now, I tried a couple of howto's but something is still not correct. Tried swat, but writing back any changes seemed to fail. So I edited smb.conf manually and at least I managed to connect but only zero byte files are being created, much the same way as sftp.
Cheers
Peter
whitehexagon is offline   0 Reply With Quote
Old Apr 27, 2008, 09:50 AM   #4
oblomow
macrumors Demi-God
 
oblomow's Avatar
 
Join Date: Apr 2005
Location: Netherlands
Send a message via AIM to oblomow
perhaps a stupid question, but does the sambauser that you're logged as have sufficient privileges on the directory? Is it allowed to write files, or better is it the owner of the directory?
oblomow is offline   0 Reply With Quote
Old Apr 27, 2008, 10:58 AM   #5
whitehexagon
Thread Starter
macrumors regular
 
Join Date: May 2007
it's the owner, and the directory is 777. two files get created when I try to do the copy:

._a.dat rw - -
a.dat rw -r -r

both same timestamp and zero bytes.
whitehexagon is offline   0 Reply With Quote
Old Apr 28, 2008, 02:58 PM   #6
oblomow
macrumors Demi-God
 
oblomow's Avatar
 
Join Date: Apr 2005
Location: Netherlands
Send a message via AIM to oblomow
Quote:
Originally Posted by whitehexagon View Post
it's the owner, and the directory is 777. two files get created when I try to do the copy:

._a.dat rw - -
a.dat rw -r -r

both same timestamp and zero bytes.
another silly question: did you check the sanity of the smb.conf file using testparm? and does the smb.conf for this specific directory has the writable parameter?
oblomow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Leopard to Snow Leopard without an optical drive uncleMonty OS X 4 Feb 27, 2013 10:26 PM
Leopard to Snow Leopard on MBP 2009 - worth it? uncleMonty OS X 6 Feb 17, 2013 12:28 PM
Can you reinstall Leopard on a mid-2009 MBP that came with Leopard? kylera MacBook Pro 5 Jan 30, 2013 10:35 PM
Upgrade Leopard to Snow Leopard 2008 iMac? roberttrussell MacBook 1 Nov 18, 2012 05:02 PM
Syncing iPhone 5 on PPC Leopard via a Snow Leopard Macbook Jethryn Freyman PowerPC Macs 2 Oct 2, 2012 08:09 AM

Forum Jump

All times are GMT -5. The time now is 06:03 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC