LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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

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


Reply


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


All times are GMT -5. The time now is 11:23 PM.

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