Problems with tar between local and nfs disk

Hi,
I am trying to move a local directory from a local disk to a nfs disk that has been shared on another file server. I am using this tar command:

tar cf - . | (cd /export/nfsdisk && tar xpf - )

It copies the data okay but the big problem is that is resets the owner:group to 'nobody'. The acl's are also okay.

Can anyone give me any pointers?

thanks

Try creating a file manually and seeing who owns it, the nfs server may not allow other owners. Otherwise, try 'tar cpf - .' and 'tar xpf -'.

thanks for the info, I have been doing further testing and it looks like if I run the tar from the server and copy to the nfs disk, the directories and files all show up with 'nobody' as the owner:group. If I pull the disk from the server to the nfs file server by running the tar command on the nfs file server the owner:group are correct.

I thought that NIS would take care of this regardless of which way the tar ran.

System configurations:

Server - Solaris 10 (sparc)
nfs server - Solaris 10 (x86)