Rsync / SSH / Cygwin .. permission problems..

Lapo Luchini lapo at lapo.it
Sat May 31 17:48:47 EST 2003


jw schultz wrote:

>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.
>
I asked Micheal Oswell for more details because perms are supported on 
cygwin (even on Win98, with the correct setup), it surely depends on the 
specific setup, e.g. on NTFS and recent cygwin they work for sure 
(cyberone is cygwin-1.3.22-1 and rsync-2.5.6-1 on NTFS on WinXP, cyberx 
is FreeBSD 4.8 and rsync 2.5.6):

cyberx [~/a] $ ls -al
total 6
drwxr-xr-x   2 lapo  users   512 May 31 09:41 .
drwxr-xr-x  56 lapo  users  2560 May 31 09:40 ..
-rw-r--r--   1 lapo  users     0 May 31 09:40 1
-rwxr-xr-x   1 lapo  users     0 May 31 09:41 2
-rwxr-----   1 lapo  users     0 May 31 09:42 3

lapo at cyberone ~/tmp $ rsync -rlztpe ssh lapo at cyberx:a b

lapo at cyberone ~/tmp $ rsync -rlzte ssh lapo at cyberx:a c

lapo at cyberone ~/tmp $ ls -al b/a/ c/a/
b/a/:
total 0
drwxr-xr-x+   2 lapo     Nessuno         0 May 31 09:41 .
drwxrwxrwx+   3 lapo     Nessuno         0 May 31 09:46 ..
-rw-r--r--    1 lapo     Nessuno         0 May 31 09:40 1
-rwxr-xr-x    1 lapo     Nessuno         0 May 31 09:41 2
-rwxr-----    1 lapo     Nessuno         0 May 31 09:42 3

c/a/:
total 0
drwxr-xr-x+   2 lapo     Nessuno         0 May 31 09:41 .
drwxrwxrwx+   3 lapo     Nessuno         0 May 31 09:46 ..
-rw-r--r--    1 lapo     Nessuno         0 May 31 09:40 1
-rwxr-xr-x    1 lapo     Nessuno         0 May 31 09:41 2
-rwxr-----    1 lapo     Nessuno         0 May 31 09:42 3

Actually it seems to me the opposite: it has perms also without -p... 
maybe it is the default?

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





More information about the rsync mailing list