public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* rsync to between workgroups
@ 2003-10-31  1:10 Matt Miller
  2003-10-31 11:16 ` Vince Hoffman
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Miller @ 2003-10-31  1:10 UTC (permalink / raw)
  To: cygwin

I recently setup rsync over ssh  to syncronize two external web servers 
with an internal staging server.  The rsync works fine but the 
permissions on the external boxes get hosed everytime it runs.

The internal server is a win2k box that is a domain member.  The two 
external web servers are NT4 standalone servers in different workgroups.

My goal is to simply syncronize all of the directories/files with the 
staging server and leave all of the permissions on the external servers 
untouched.  In other words, I want to push-out updated versions of the 
root web folder but have those folders retain their  settings at the 
remote ends.  I would like any new files created on the internal box to 
ultimately inherit the rights of the external wwroot folder on the 
external boxes.  Incidentally, this folder gives full control to Admins, 
Change for a powerUser named "WebAdmin" and Read permissions to the 
Everyone group.

Since all of these machines have different user and machine SIDS, I 
realize that I'll never be able to preserve permissions, so I'm not 
using the -p or -a switches for rsync. 

I've done a mkpasswd -l > /etc/passwd and mkgroup -l /etc/group on both 
external boxes.   I  also have edited the  passwd  file to  replace 
group GID 513 with the appropriate  IDs  for the Administrator and 
PowerUser accounts. 

I've tried using CYGWIN=ntsec and CYGWIN=nontsec.  Doesn't seem to make 
a difference.

Each time I run the rsync, I end up with permissions like CREATOR OWNER 
(ALL), CREATOR GROUP(RX), WebAdmin Special Access(RWXD), EVERYONE Read 
(RX), USERS Special Access(RX).   These are not the permissions that 
existed before the rsync.  I want the permissions to stay the same.

I don't think this is an rsync issue as I've noticed similar behavior if 
I just touch a new file from an ssh session on one of the external boxes.  

The manual discusses permissions but it doesn't seem to addresss this 
scenario directly.  I've been reading the posts here all day but I don't 
see anything like this.

How can I get files into a directory without CYGWIN adjusting the 
permissions?


Thanks for the help!

Matt






--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: rsync to between workgroups
  2003-10-31  1:10 rsync to between workgroups Matt Miller
@ 2003-10-31 11:16 ` Vince Hoffman
  0 siblings, 0 replies; 2+ messages in thread
From: Vince Hoffman @ 2003-10-31 11:16 UTC (permalink / raw)
  To: Matt Miller, cygwin

[snip lots of relevant info]
>
> I've tried using CYGWIN=ntsec and CYGWIN=nontsec.  Doesn't seem to make
> a difference.
>

When you say you have tried CYGWIN=ntsec and CYGWIN=nontsec
do you mean as a system or user variable ?
also have you tried setting it to  CYGWIN=nontsec using the -e switch to
cygrunsrv ? (ie in the services environment)
(I have it workingt fine between 2 standalone servers, files just inherit
the containing folders permissions)
I'm assuming files created through explorer have correct permissions.


> Each time I run the rsync, I end up with permissions like CREATOR OWNER
> (ALL), CREATOR GROUP(RX), WebAdmin Special Access(RWXD), EVERYONE Read
> (RX), USERS Special Access(RX).   These are not the permissions that
> existed before the rsync.  I want the permissions to stay the same.


--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-31 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-31  1:10 rsync to between workgroups Matt Miller
2003-10-31 11:16 ` Vince Hoffman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).