delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/16/05:45:37

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 16 Apr 2010 11:45:19 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)
Message-ID: <20100416094519.GO8556@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <o2ta9a39a211004142214mfed097abv98beb16fb7db1bfd AT mail DOT gmail DOT com> <20100415084927 DOT GB7865 AT calimero DOT vinschen DOT de> <y2ha9a39a211004160213zd7424075wa8ccc2182b0f20fc AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <y2ha9a39a211004160213zd7424075wa8ccc2182b0f20fc@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Apr 16 11:13, Fr?d?ric Bron wrote:
> >  Is UAC enabled?  Elevated or non-elevated shell?
> Access control via Active Directory. No idea about elevation (do not
> know that). I am listed in the administrator group of the main machine
> I use (corporate PC).

Ok, so you're admin.  I assume that `id' lists the administrators
group in your supplementary group list?

> > Which OS are you using, btw?
> Windows XP SP3

Ok, so no UAC.

> I identified one file that was permanently failing to be saved had the
> following permissions on my hard drive:
> - Administraors: full control
> - Domain Users: Read&Execute, Read
> - MySelf: Modify, Read&Execute, Read, Write
> - SYSTEM: full control
> - Everyone: Read&Execute, Read
> - Users (computer\Users): Read&Execute, Read
> 
> I added full control to my-self on the local hard drive and then rsync
> worked fine. On the USB disk the remaining ".file.exe.XXXX" has full
> control to everyone and only this which is fine.
> I then removed again the full control to my-self on the local hard
> drive and rsync failed again.
> 
> Any clue?

Not really.  So, with the above permissions, rsync fails but mv works,
right?  What's important when using mv is to mv the file within the
same filesystem.  Rsync does not fail to copy the file to the USB
stick.  It fails when trying to rename the copied file on the USB stick
from its temporary name (.file.foo) to the desired target name.  This
renaming is what we have to check for.  So, what das mv say when you
try to just rename the file?  What if you cp the file to the USB stick
and then try to mv it to another name there?

Can you please create an strace rsyncing just this single file with
the failing permissions?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019