Re: Rsync / SSH / Cygwin .. permission problems..

2003-06-03 Thread Vince Hoffman
 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 had to set cygwin=nontsec for my rsync service for the cron jobs to work
correctly between 2 win2k servers (both ntfs, I set it up a while back now
though.) Otherwise the files were owned by SYSTEM if i remember rightly, and
needed to be chowned/chmodded before they were any use.
With nontsec they just inherited the directories permissions.
Havent tried over ssh though. I was using rsync in server mode as a service.

 
 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
 [EMAIL PROTECTED] (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/


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


RE: Rsync / SSH / Cygwin .. permission problems..

2003-06-03 Thread Oswell, Michael
 .\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
bzip21.0.2-2
cron 3.0.1-9
crypt1.0-1
cvs  1.11.0-1
cygrunsrv0.95-1
cygwin   1.3.22-1
diff 1.0-1
diffutils2.8.1-1
emacs21.2-11
fileutils4.1-1
findutils4.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-devel1.8.0-5
libgdbm3 1.8.3-1
libiconv21.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
login1.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
rsync2.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
textutils2.0.21-1
vim  6.1-2
which1.5-1
zlib 1.1.4-1

Use -h to see help about each section


Thanks,

--
Mike Oswell

-Original Message-
From: Lapo Luchini [mailto:[EMAIL PROTECTED] 
Sent: May 31, 2003 12:29 AM
To: Oswell, Michael
Cc: '[EMAIL PROTECTED]'; 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

Re: -p option in man and help [Was: Rsync / SSH / Cygwin ..permission problems..]

2003-06-01 Thread jw schultz
On Sat, May 31, 2003 at 11:51:25AM +0200, Lapo Luchini wrote:
 jw schultz wrote:
 
 On Sat, May 31, 2003 at 09:48:47AM +0200, Lapo Luchini wrote:
  
 
 Actually it seems to me the opposite: it has perms also without -p... 
 maybe it is the default?

 
 Without -p new files get perms of source as modified by
 umask.
 
 Ohhh.
 Maybe it's just me, but wouldn't
 --p, --perms preserve permissions
 +-p, --perms preserve permissions (do not filter 
 them by umask)
 be good for people that don't know it?

No.  Without -p permissions are only copied for new files.
Existing files are unchanged.

-- 

J.W. SchultzPegasystems Technologies
email address:  [EMAIL PROTECTED]

Remember Cernan and Schmitt
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync / SSH / Cygwin .. permission problems..

2003-05-31 Thread jw schultz
On Sat, May 31, 2003 at 09:48:47AM +0200, Lapo Luchini wrote:
 Actually it seems to me the opposite: it has perms also without -p... 
 maybe it is the default?
Without -p new files get perms of source as modified by
umask.

-- 

J.W. SchultzPegasystems Technologies
email address:  [EMAIL PROTECTED]

Remember Cernan and Schmitt
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync / SSH / Cygwin .. permission problems..

2003-05-31 Thread Lapo Luchini
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
[EMAIL PROTECTED] (PGP  X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html