You don't want to change UIDs and GUIDs, trust me
I don't know if your OS supports this, but on Mac OS X 10.6 one can add a -mapall option to each export in /etc/exports in order to map the connecting client to a specified user on the host.
For example (in /etc/exports):
/path/to/shared/folder 192.168.1.14 -mapall=john
From "man exports":
Quote:
If a -mapall option is given, all users (including root) will be mapped to that credential in place of their own.
|
There's also a -maproot option if you only want root to get this behaviour.
See this blog post for a more detailed example:
http://www.macresearch.org/nfs-exports-leopard