LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing permissions of destination directory after rsync (http://www.linuxquestions.org/questions/linux-general-1/changing-permissions-of-destination-directory-after-rsync-609134/)

cliff123 12-26-2007 02:11 AM

Changing permissions of destination directory after rsync
 
Hi,

I am trying to rsync some data from one server to another using ssh public key authentication as user. I have added ssh key in the destination server and succeeded in copying the data. But when I try rsync-ing for the second time, it doesn't work. It is asking for the ssh password.

On a further check, I found that the permissions of the destination user directory has been changed to 775 after rsync.( it was 711 before). The ssh key doesn't work with 775 permissions.

I am using the following command for rsync,

rsync -avz -e 'ssh -p 2599' -F --include-from=list testing/ user@dest-IP:

Any suggestions?

Thanking you,
Tom

btmiller 12-26-2007 04:09 AM

Are the permissions on the source directory set correctly? When -a is used with rsync the permissions on the destination directory will be changed to match those of the source directory. I am assuming you are rsync'ing the entire home directory here -- correct?


All times are GMT -5. The time now is 02:27 PM.