|
Rsync changing owner of dirs
Not sure if this is an rsync issue or a weird Redhat security issue. I have 2 groups. GroupA and GroupB. I have a file structure like this... /GroupADir and /GroupADir/GroupBDir... /GroupADir is owned by groupa:groupa. The /GroupADir/GroupBDir is owned by groupb:groupb. GroupA is a member of GroupB. When I run rsync I am using the groupa account as my ssh account when i do this. When running rsync, GroupA gets all of the files with no problems from both directories. However, after finishing rsync, the /GroupADir/GroupBDir is now mysteriously and recursively owned by groupa:groupa instead of the original groupb:groupb. Is there any way to keep this from happening after rsync is run?
Rsync looks like this...
cmd = 'rsync --verbose --progress --stats --compress --rsh=/usr/bin/ssh --recursive --times --perms --links --delete $hostName:'+sys.argv[1]+' '+sys.argv[2]
Thanks,
Harlin Seritt
|