Hi all, I'm rsyncing a windows 2003 client to a windows 2003 server using the cwrsync installation package. The trouble is that the permission rights set by rsync on the destination server are very restrictive and don't allow another application to access the files. I'd like to change that. However, the GID and UID parameters in the rsyncd.conf file don't seem to manage that. With the rsync service running as a user or with the system account, it doesn't change the permissions the way I want it. I haven't found clear explanations in the web or the mailing list archives (it looks way too much linuxian to me !). So, questions : Is the cwrsync package enough to manage permission rights or do I have to use the complete CYGWIN thing ? If the cwrsynvc package can handle it, how can I set the permissions I want (or at least make the destination directory inherit from the permissions set) ? Advices And Answers Are Always Appreciated. St?phane Rohart
I am running a complete Cygwin environment but have the same issue. I've been having the same trouble particularly in a workgroup environment. When running an rsync daemon on the cygwin side (including 2.6.2) it does not correctly set owner, regardless of whether the uid/gid is set in rsync.conf. Owner is always set to system, the uid of the service process. I have been testing the chmod-option.diff patch that accompanies the distribution, where I can set Dugo+rwx,Fugo+rw. This is a reasonable solution for me, but I would of course prefer that the rsync daemon work appropriately so that o+rw permissions weren't required. I have tested this extensively with Cygwin environment ntsec/nontsec etc. and other cygwin-side options in rsyncd.conf without success. So far it has been consistent and I have seen numerous other folks with a similar issue. I am aiming to find a real solution to file ownership if I can and am very open to testing all suggestions. Thanks, Andy --- On Mon 05/10, Stephane Rohart < ROHART@archimed.fr > wrote: From: Stephane Rohart [mailto: ROHART@archimed.fr] To: rsync@lists.samba.org Date: Mon, 10 May 2004 11:48:02 +0200 Subject: cwRync and Windows permissions Hi all,<br> <br>I'm rsyncing a windows 2003 client to a windows 2003 server using the cwrsync installation package.<br> <br>The trouble is that the permission rights set by rsync on the destination server are very restrictive <br>and don't allow another application to access the files. I'd like to change that. <br>However, the GID and UID parameters in the rsyncd.conf file don't seem to manage that. With<br>the rsync service running as a user or with the system account, it doesn't change the permissions<br>the way I want it. I haven't found clear explanations in the web or the mailing list archives (it looks<br>way too much linuxian to me !).<br> <br>So, questions :<br>Is the cwrsync package enough to manage permission rights or do I have to use the complete <br>CYGWIN thing ?<br>If the cwrsynvc package can handle it, how can I set the permissions I want (or at least make <br>the destination directory inherit from the permissions set) ?<br> <br>Advices And Answers Are Always Appreciated.<br> <br>Stéphane Rohart<br>--<br>To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync<br>Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html<br> _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!
Hi, cwRsync package has a batch file example that corrects permissions problem at client side. However, this is not the case for the server part. You have to manually set a system-wide variable CYGWIN to nontsec and restart cwRsync service after correcting permissions as you like. Have a look at http://www.itefix.no/phpws/index.php?module=faq&FAQ_op=view&FAQ_id=12 In short : Right click My Computer Go to Properties Go to the Advanced Tab Click Environment Variables In the bottom section (System variables), add the new entry: CYGWIN, with value nontsec Restart the rsync service Make sure the folders you are uploading to have the permissions you want the files to inherit. Doing this, I?ve found the uploaded files get the correct permissions. Rgrds Tev cwRsync maintainer NB! cwRsync package does not handle this automatically, because I don't want to disturb an existing cygwin installation. Maybe, it's time to offer it as an option.> Hi all, > > I'm rsyncing a windows 2003 client to a windows 2003 server using the > cwrsync installation package. > > The trouble is that the permission rights set by rsync on the destination > server are very restrictive > and don't allow another application to access the files. I'd like to > change that. > However, the GID and UID parameters in the rsyncd.conf file don't seem to > manage that. With > the rsync service running as a user or with the system account, it doesn't > change the permissions > the way I want it. I haven't found clear explanations in the web or the > mailing list archives (it looks > way too much linuxian to me !). > > So, questions : > Is the cwrsync package enough to manage permission rights or do I have to > use the complete > CYGWIN thing ? > If the cwrsynvc package can handle it, how can I set the permissions I > want (or at least make > the destination directory inherit from the permissions set) ? > > Advices And Answers Are Always Appreciated. > > St?phane Rohart > -- > To unsubscribe or change options: > http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >
That did the job. Thank you tevfik ! St?phane -----Message d'origine----- De : tevfik@itefix.no [mailto:tevfik@itefix.no] Envoy? : lundi 10 mai 2004 16:02 ? : Stephane Rohart Cc : rsync@lists.samba.org Objet : Re: cwRync and Windows permissions Hi, cwRsync package has a batch file example that corrects permissions problem at client side. However, this is not the case for the server part. You have to manually set a system-wide variable CYGWIN to nontsec and restart cwRsync service after correcting permissions as you like. Have a look at http://www.itefix.no/phpws/index.php?module=faq&FAQ_op=view&FAQ_id=12 In short : Right click My Computer Go to Properties Go to the Advanced Tab Click Environment Variables In the bottom section (System variables), add the new entry: CYGWIN, with value nontsec Restart the rsync service Make sure the folders you are uploading to have the permissions you want the files to inherit. Doing this, I've found the uploaded files get the correct permissions. Rgrds Tev cwRsync maintainer NB! cwRsync package does not handle this automatically, because I don't want to disturb an existing cygwin installation. Maybe, it's time to offer it as an option.> Hi all, > > I'm rsyncing a windows 2003 client to a windows 2003 server using the > cwrsync installation package. > > The trouble is that the permission rights set by rsync on the > destination server are very restrictive and don't allow another > application to access the files. I'd like to change that. > However, the GID and UID parameters in the rsyncd.conf file don't seem to > manage that. With > the rsync service running as a user or with the system account, it doesn't > change the permissions > the way I want it. I haven't found clear explanations in the web or the > mailing list archives (it looks > way too much linuxian to me !). > > So, questions : > Is the cwrsync package enough to manage permission rights or do I have > to use the complete CYGWIN thing ? > If the cwrsynvc package can handle it, how can I set the permissions I > want (or at least make > the destination directory inherit from the permissions set) ? > > Advices And Answers Are Always Appreciated. > > St?phane Rohart > -- > To unsubscribe or change options: > http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: > http://www.catb.org/~esr/faqs/smart-questions.html >
tevfik@itefix.no writes:> Have a look at > > http://www.itefix.no/phpws/index.php?module=faq&FAQ_op=view&FAQ_id=12 > > In short : > > Right click My Computer Go to Properties Go to the Advanced Tab Click > Environment Variables In the bottom section (System variables), add the > new entry: CYGWIN, with value nontsec Restart the rsync service Make sure > the folders you are uploading to have the permissions you want the files > to inherit. Doing this, I’ve found the uploaded files get the correct > permissions.It works for me too. Thanks. An alternative to the system-wide variable is to add --env CYGWIN=nontsec to the cygrunsrv command-line when you install rsyncd as a service, eg: cygrunsrv -I rsyncd --env CYGWIN=nontsec -p c:/cygwin/bin/rsync.exe -a "--config=/etc/rsyncd.conf --daemon --no-detach" Craig