delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/31/03:29:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3ED859D8.80106@lapo.it>
Date: Sat, 31 May 2003 09:29:28 +0200
From: Lapo Luchini <lapo AT lapo DOT it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030526
X-Accept-Language: it, en, fr, es
MIME-Version: 1.0
To: "Oswell, Michael" <moswell AT rsasecurity DOT com>
CC: "'rsync AT lists DOT samba DOT org'" <rsync AT lists DOT samba DOT org>,
Mailing List: CygWin <cygwin AT cygwin DOT com>
Subject: Re: Rsync / SSH / Cygwin .. permission problems..
References: <016D1D1E0314D5118A7F00508BD95252033352E5 AT exvan01 DOT x509 DOT com>
In-Reply-To: <016D1D1E0314D5118A7F00508BD95252033352E5@exvan01.x509.com>

Oswell, Michael wrote:
[sorry for the full quote, but I'm CCing the cygwin mailing list too]

>I am attempting to use rsync to "mirror" data between several windows 2000
>and windows XP systems.  I am a UNIX person by nature, so decided the
>easiest way to go about doing this would be to use Cygwin with cron and ssh
>running as services, then run the rsync connection nightly through cron.
> 
>Cygwin is installed on both systems and works perfectly.  OpenSSH is
>installed and running, and the rsync user we created is able to ssh using
>password-less keys between the 2 systems.  When I run rsync, it correctly
>pulls the data down that I want.  The problem is that there are NO
>permissions on the files that are pulled down, so they are basically
>inaccessable.  
> 
>I have tried with and without the -p option, hoping the files would inherit
>parent directory permissions if I didn't use it, but it doesn't appear to do
>so. The command as I run it is;
> 
>rsync -rlztpv --rsh=ssh --delete remote-fs:/path/to/the/files .
>or
>rsync -rlztv --rsh=ssh --delete remote-fs:/path/to/the/files .
> 
>With the "p" option included, there are no permission bits set on the files
>whatsover.  Without the "p" option, it sets the files to 0200.
> 
>Any ideas here?  Both systems have the Domain groups in the groups file, and
>have the  rsync user as well as local users in the passwd file.  I would
>prefer to not have to have ALL domain users in the password file for cygwin
>if possible.
> 
>I have also tried this from a DOS shell instead of a cygwin shell with the
>same results..
> 
>Thanks in advance...
>  
>
Are the files on NTFS?
Can you give some more detail about the CygWin installation?
Whetherver you use ntsec, release number of cygwin and rsync... (to 
include al this you can attach the output of 'cygcheck -s')

BTW: latest packages are cygwin-1.3.22-1 (which afair defaults to ntsec) 
and rsync-2.5.6-1

-- 
Lapo 'Raist' Luchini
lapo AT lapo DOT it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019