Be glad it doesn't preserve user. If it did, anyone that has root privileges on a machine that you allow to connect would be able to escalate their privileges on your machine:
1: on my machine, where I'm root, I create a setuid program that's owned by root and executes /bin/ksh.
2: I grant universal read rights to the program on my machine.
3: logging in as a regular user that's allow to ssh to your machine, I scp the file over to my account on your machine, preserving user and permissions.
4: I logon to your machine and execute the handy little root shell that's waiting for me.
That said, you might be able to use rsync to accomplish what you want.
Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.