Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-26-2007, 01:11 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Changing permissions of destination directory after rsync


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,
Old 12-26-2007, 03:09 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync set permissions destination Abstractt Linux - General 3 09-30-2010 02:05 AM
Changing Directory Permissions trevor4706 Fedora 2 06-13-2006 06:37 PM
Directory permissions changing back? elderain Linux - Newbie 0 03-08-2004 06:02 PM
Changing directory permissions Bagsy Linux - Newbie 1 07-08-2003 05:50 AM
changing permissions for entire directory jmarsh Linux - Networking 2 05-13-2003 08:12 AM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration