command to copy files with original ownership

Hi,

I need a command that to copy files from others and to keep files' ownership.
Example: I copy file.txt from users "abc" to my local, and file.txt is own by user "abc" in local.

Thanks in advance!

cp -p <path/filename> <path/filename>

Also can be done in 2 steps.
1) Copy the file
2) Change the ownership.

Copy -p preserves the permission, modification time of the original userid

another possibility if you copy not only single files but nested directory hierarchies:

cd srcdir
tar -cf - * | (cd /target/dir; tar -xf - )

bakunin