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.

Scenario on a Solaris system:

ls -ld /foo
drwxrwxrwx   2 user1    other        512 Oct 30 16:05 /foo

ls -l /foo/*
total 0
-rw-r--r--   1 user1    other         10 Oct 30 16:05 /foo/file_a
-rw-r--r--   1 user2    staff          30 Oct 30 16:05 /foo/file_b

(Yes I know wide open directories are evil, but the application folks do strange things.)

If I use rsync as user1 all the files on the destination server are owned by user1. I.E.

ls -l /foo/*
total 0
-rw-r--r--   1 user1    other         10 Oct 30 16:05 /foo/file_a
-rw-r--r--   1 user1    other         30 Oct 30 16:05 /foo/file_b

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.)

Any suggestions on preserving the file ownership in this case?

JC

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to