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... - Mike
On Thu, May 29, 2003 at 10:02:02AM -0700, Oswell, Michael wrote:> 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...Hey cygwiners have you no comment? I think this is a cygwin limitation. Perms are probably not supported. With -p it will use whatever perms stat returned (apparently 0000). I'm not sure why you are getting a 0200 mode. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
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@lapo.it (PGP & X.509 keys available) http://www.lapo.it (ICQ UIN: 529796)
The files are all on NTFS. Cygwin was installed using setup version 2.340.2.5 Rsync 2.5.6 OpenSSH 3.6.1p1 Cygwin 1.3.22-1 It also appears that the CYGWIN variable is non-existant or empty when I start up cygwin as well. I will try nontsec and ntsec to see if that helps at all.>From cygcheck -s ;Cygwin Win95/NT Configuration Diagnostics Current System Time: Mon Jun 02 08:49:23 2003 Windows 2000 Server Ver 5.0 Build 2195 Service Pack 3 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\Program Files\nsr\bin C:\cygwin\bin\id.exe output (nontsec) UID: 14180(rsync) GID: 10513(Domain groups=10513(Domain Users) C:\cygwin\bin\id.exe output (ntsec) UID: 14180(rsync) GID: 10513(Domain groups=545(Users) 10513(Domain Users) SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME = `C:\cygwin\export\home\rsync' MAKE_MODE = `unix' PWD = `/usr/bin' USER = `rsync' Use `-r' to scan registry a: fd N/A N/A c: hd NTFS 17312Mb 12% CP CS UN PA FC LOCAL d: cd N/A N/A e: hd NTFS 104995Mb 37% CP CS UN PA FC File f: hd NTFS 35040Mb 43% CP CS UN PA FC User C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: .\awk.exe Found: C:\cygwin\bin\awk.exe Found: .\bash.exe Found: C:\cygwin\bin\bash.exe Found: .\cat.exe Found: C:\cygwin\bin\cat.exe Found: .\cp.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: .\find.exe Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: .\grep.exe Found: C:\cygwin\bin\grep.exe Not Found: ld Found: .\ls.exe Found: C:\cygwin\bin\ls.exe Not Found: make Found: .\mv.exe Found: C:\cygwin\bin\mv.exe Found: .\rm.exe Found: C:\cygwin\bin\rm.exe Found: .\sed.exe Found: C:\cygwin\bin\sed.exe Found: .\sh.exe Found: C:\cygwin\bin\sh.exe Found: .\tar.exe Found: C:\cygwin\bin\tar.exe 58k 2002/05/07 .\cygbz2-1.dll 848k 2003/04/11 .\cygcrypto-0.9.7.dll 645k 2003/04/11 .\cygcrypto.dll 45k 2001/04/25 .\cygform5.dll 35k 2002/01/09 .\cygform6.dll 76k 2003/03/09 .\cygform7.dll 28k 2003/03/22 .\cyggdbm-3.dll 19k 2003/03/22 .\cyggdbm.dll 15k 2003/03/22 .\cyggdbm_compat-3.dll 17k 2001/06/28 .\cyghistory4.dll 20k 2002/10/10 .\cyghistory5.dll 929k 2002/06/24 .\cygiconv-2.dll 22k 2001/12/13 .\cygintl-1.dll 28k 2002/09/20 .\cygintl-2.dll 26k 2001/04/25 .\cygmenu5.dll 20k 2002/01/09 .\cygmenu6.dll 48k 2003/03/09 .\cygmenu7.dll 156k 2001/04/25 .\cygncurses++5.dll 175k 2002/01/09 .\cygncurses++6.dll 226k 2001/04/25 .\cygncurses5.dll 202k 2002/01/09 .\cygncurses6.dll 284k 2003/03/09 .\cygncurses7.dll 15k 2001/04/25 .\cygpanel5.dll 12k 2002/01/09 .\cygpanel6.dll 31k 2003/03/09 .\cygpanel7.dll 63k 2003/04/11 .\cygpcre.dll 61k 2003/04/11 .\cygpcreposix.dll 22k 2002/06/09 .\cygpopt-0.dll 108k 2001/06/28 .\cygreadline4.dll 127k 2002/10/10 .\cygreadline5.dll 176k 2003/04/11 .\cygssl-0.9.7.dll 165k 2003/04/11 .\cygssl.dll 50k 2002/03/12 .\cygz.dll 948k 2003/03/18 .\cygwin1.dll Cygwin DLL version info: DLL version: 1.3.22 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 78 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Tue Mar 18 09:20:11 EST 2003 CVS tag: dontuse-21 Shared id: cygwin1S3 58k 2002/05/07 .\cygbz2-1.dll 848k 2003/04/11 .\cygcrypto-0.9.7.dll 645k 2003/04/11 .\cygcrypto.dll 45k 2001/04/25 .\cygform5.dll 35k 2002/01/09 .\cygform6.dll 76k 2003/03/09 .\cygform7.dll 28k 2003/03/22 .\cyggdbm-3.dll 19k 2003/03/22 .\cyggdbm.dll 15k 2003/03/22 .\cyggdbm_compat-3.dll 17k 2001/06/28 .\cyghistory4.dll 20k 2002/10/10 .\cyghistory5.dll 929k 2002/06/24 .\cygiconv-2.dll 22k 2001/12/13 .\cygintl-1.dll 28k 2002/09/20 .\cygintl-2.dll 26k 2001/04/25 .\cygmenu5.dll 20k 2002/01/09 .\cygmenu6.dll 48k 2003/03/09 .\cygmenu7.dll 156k 2001/04/25 .\cygncurses++5.dll 175k 2002/01/09 .\cygncurses++6.dll 226k 2001/04/25 .\cygncurses5.dll 202k 2002/01/09 .\cygncurses6.dll 284k 2003/03/09 .\cygncurses7.dll 15k 2001/04/25 .\cygpanel5.dll 12k 2002/01/09 .\cygpanel6.dll 31k 2003/03/09 .\cygpanel7.dll 63k 2003/04/11 .\cygpcre.dll 61k 2003/04/11 .\cygpcreposix.dll 22k 2002/06/09 .\cygpopt-0.dll 108k 2001/06/28 .\cygreadline4.dll 127k 2002/10/10 .\cygreadline5.dll 176k 2003/04/11 .\cygssl-0.9.7.dll 165k 2003/04/11 .\cygssl.dll 50k 2002/03/12 .\cygz.dll 948k 2003/03/18 .\cygwin1.dll Cygwin DLL version info: DLL version: 1.3.22 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 78 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Tue Mar 18 09:20:11 EST 2003 CVS tag: dontuse-21 Shared id: cygwin1S3 58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll 848k 2003/04/11 C:\cygwin\bin\cygcrypto-0.9.7.dll 645k 2003/04/11 C:\cygwin\bin\cygcrypto.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 76k 2003/03/09 C:\cygwin\bin\cygform7.dll 28k 2003/03/22 C:\cygwin\bin\cyggdbm-3.dll 19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll 15k 2003/03/22 C:\cygwin\bin\cyggdbm_compat-3.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll 20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll 929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll 28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll 48k 2003/03/09 C:\cygwin\bin\cygmenu7.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll 284k 2003/03/09 C:\cygwin\bin\cygncurses7.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll 31k 2003/03/09 C:\cygwin\bin\cygpanel7.dll 63k 2003/04/11 C:\cygwin\bin\cygpcre.dll 61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll 127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll 176k 2003/04/11 C:\cygwin\bin\cygssl-0.9.7.dll 165k 2003/04/11 C:\cygwin\bin\cygssl.dll 50k 2002/03/12 C:\cygwin\bin\cygz.dll 948k 2003/03/18 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.3.22 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 78 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Tue Mar 18 09:20:11 EST 2003 CVS tag: dontuse-21 Shared id: cygwin1S3 Cygwin Package Information Package Version _update-info-dir 00162-1 ash 20020731-1 base-files 1.3-1 base-passwd 1.1-1 bash 2.05b-9 bzip2 1.0.2-2 cron 3.0.1-9 crypt 1.0-1 cvs 1.11.0-1 cygrunsrv 0.95-1 cygwin 1.3.22-1 diff 1.0-1 diffutils 2.8.1-1 emacs 21.2-11 fileutils 4.1-1 findutils 4.1.7-4 gawk 3.1.2-2 gdbm 1.8.0-5 grep 2.5-1 gzip 1.3.3-4 libbz2_1 1.0.2-2 libgdbm 1.8.0-5 libgdbm-devel 1.8.0-5 libgdbm3 1.8.3-1 libiconv2 1.8-2 libintl1 0.10.40-1 libintl2 0.11.5-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-2 login 1.8-1 ncurses 5.3-1 openssh 3.6.1p1-1 openssl 0.9.7b-1 openssl096 0.9.6j-1 pcre 4.1-1 readline 4.3-2 rsync 2.5.6-1 sed 4.0.7-1 sh-utils 2.0.15-3 tar 1.13.25-1 termcap 20020930-1 terminfo 5.3-2 texinfo 4.2-4 textutils 2.0.21-1 vim 6.1-2 which 1.5-1 zlib 1.1.4-1 Use -h to see help about each section Thanks, -- Mike Oswell -----Original Message----- From: Lapo Luchini [mailto:lapo@lapo.it] Sent: May 31, 2003 12:29 AM To: Oswell, Michael Cc: 'rsync@lists.samba.org'; CygWin Subject: Re: Rsync / SSH / Cygwin .. permission problems.. 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@lapo.it (PGP & X.509 keys available) http://www.lapo.it (ICQ UIN: 529796)