Re: NFS client on MacOS X



In article <1187413809.445753.191290@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"borepstein@xxxxxxxxx" <borepstein@xxxxxxxxx> wrote:

Hello all,

I am trying to mount an NFS volume from a Linux-based NFS V2-3-4
server with a Macos X client. I keep failing for some reason. I am
trying to mount it over TCP (UDP is blocked by the firewall). Has
anybody encountered it?

Also, the automount on Macos X seems to only support one moutn at a
time. Any idea why?

Thanks.

Boris.

Just as a general comment/anecdote regarding cross-platform NFS:

I have also run into some real issues getting NFS to work (between my
Mac, as the client, and a Linux box running Knoppmyth as the server).
After much fiddling, I read something [1] that said that NFS actually
uses UID numbers, not usernames, for access once the share is mounted.
So if you are user "joeblow" with UID 501 on one machine, but your
account is "joeblow" with UID 1001 on the other, you'll run into
permissions issues.

What happened to me is that I could mount the share OK (exported home
directory), but couldn't write to it. As it turns out, NFS uses your
actual username to connect to the share but uses the numeric UID when
actually accessing things. Since the UIDs don't match, the server will
refuse to do anything *even though you're logged in as the right user.*

To me this seems like gross stupidity (why would a system ever assume
that your UIDs would be consistent across machines?) but I assume it
probably has its roots in some UNIX history and made sense to someone at
some point [2].

My "solution" was to change my UID on the Linux box to be the same as my
UID on the Mac, a procedure that I don't really recommend trying unless
you *really* need NFS. (There might have been a more elegant solution
but I never found it and I was in a hurry.)

It strikes me that it ought to be possible to specify on the client what
UID you want it to use when communicating with the server (e.g. say
"pretend I'm UID 1001 when talking to this server") but I don't know of
an easy way to do this.

Just something to be on the lookout for.

-Kadin.

[1] <http://www.troubleshooters.com/linux/nfs.htm#_Gotchas>
[2] It probably makes a certain amount of sense if you use NIS to synch
usernames and UIDs across all the machines, but very few people use NIS
anymore.
.



Relevant Pages

  • Errors writing large files via NFS
    ... files larger than a certain size to a NFS server. ... client systems, although the definition of "too large" varies. ... network paths involved, I'm pretty sure we're not seeing a network problem. ...
    (Tru64-UNIX-Managers)
  • Re: Still getting NFS client locking up
    ... > the same NFS lockups. ... > Reading from the server works perfectly all the time. ... > NFS CLIENT: ... in particular, look at traces for any client blocked in NFS, ...
    (freebsd-current)
  • Re: Help me replace some Windows installations
    ... > Possible with untrusted clients in SMB, and trusted clients in NFS. ... >> trust every client that might be connected to this network. ... > Still, user ABC on client, accesses to server with rights of the user ... > which Peter already told you about, or use SMB for Linux to Linux ...
    (comp.os.linux.setup)
  • V210 BGE0@1000FDX
    ... When connecting a server to a Gig interface you need to enable autoneg ... Blocked port after process kill ... NFS oddity ... where hostname is the name of the NFS client which will automount the ...
    (SunManagers)
  • Re: More Duplicate E-mails Outlook 2003 -DRAT!
    ... A client configured to download and delete all messages will be able to ... another on the server. ... another, though, is through the UID, so if the server assigns the same UID ... Outlook Express handles this without duplicates by never even showing you ...
    (microsoft.public.outlook.general)