X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: X-Sender: robbosch AT msn DOT com From: "Rob Bosch" To: Subject: Re: 1.7 - noacl for cygdrive Date: Tue, 18 Nov 2008 08:35:04 -0700 Message-ID: <002201c94993$3a4a2e50$aede8af0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > Rob, many thanks for your reply. > So it's not just me having massive problems with the NT permissions which are > being messed up by Cygwin tools like rsync. Actually most Cygwin users should > see these problems, I guess, because Windows 2000 and XP use NTFS. > I can't use rsync anymore, because the permissions of the destination are all wrong after rsync resets them... Oh what a pity! Rsync will work fine with 1.5.25. Just set the global NTSEC (see http://www.cygwin.com/cygwin-ug-net/ntsec.html). You have to set this variable in your system environment so that any process spawned gets it, especially if you are running rsync as a service. If you are scripting it, add it in your cmd file. To set it globally, Right-click on My Computer, choose properties, click Advanced, Click environment variables and click New, add CYGWIN with a value of NONTSEC. This causes cygwin to ignore all permissions and use the Windows assigned default values. I also recommend you look at cwrsync by Tev. He has created an install package that works very well (http://www.itefix.no/i2/cwrsync). > The fstab doesn't seem to work for me. You mentioned that you mount. How could I verify > that my Cygwin does mount, too? Do you have to use a special > command in order to mount in Cygwin? > I just run a small bash script which uses rsync with the /cygdrive/c/ etc > drive syntax. Is this mounting? > Could you please post an example of how your fstab looks like? Thanks. > My Cygwin/etc/fstab looks like this: > none /cygdrive cygdrive user,noacl,posix=0 0 0 > But rsync still resets all my NT permissions. Fstab will only work with these options under 1.7. The noacl option was added in 1.7. Example entry in fstab would be D:\ /mnt ntfs noacl,posix=0,user 0 0 which assigns drive D:\ to /mnt. Then in a bash script you would reference /mnt. Also, in the rsyncd.conf file, you would reference a directory as /mnt/backup01 as the path (e.g. path = /mnt/backup01). Under 1.5 you do not need to worry about any of this since the global NONTSEC fixes the issues. Under 1.7 there is no global option like NONTSEC. Rob -- 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/