<html>
<body>
<div style="font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">
Forgive me if the answer is obvious but I've googled and searched the archives but I can't seem to find a good solution.
<br />
<br />Scenario on a Solaris system:
<br />
<br />ls -ld /foo
<br />drwxrwxrwx&nbsp;&nbsp; 2 user1&nbsp;&nbsp;&nbsp; other&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Oct 30 16:05 /foo
<br />
<br />ls -l /foo/*
<br />total 0
<br />-rw-r--r--&nbsp;&nbsp; 1 user1&nbsp;&nbsp;&nbsp; other&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10 Oct 30 16:05 /foo/file_a
<br />-rw-r--r--&nbsp;&nbsp; 1 user2&nbsp;&nbsp;&nbsp; staff&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30 Oct 30 16:05 /foo/file_b
<br />
<br />(Yes I know wide open directories are evil, but the application folks do strange things.)
<br />
<br />If I use rsync as user1 all the files on the destination server are owned by user1. I.E.
<br />
<br />ls -l /foo/*
<br /> total 0
<br /> -rw-r--r--&nbsp;&nbsp; 1 user1&nbsp;&nbsp;&nbsp; other&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10 Oct 30 16:05 /foo/file_a
<br /> -rw-r--r--&nbsp;&nbsp; 1 user1 &nbsp;&nbsp; other&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30 Oct 30 16:05 /foo/file_b
<br />
<br />I'm trying to avoid using rsynd as we're paranoid about security. (We change root password on a regular basis. The solutions indicate that I may have to change the secrets file each time.)
<br />
<br />Any suggestions on preserving the file ownership in this case?
<br />
<br />JC
<br />

<br>
</div>
</body>
</html>