From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79306 invoked by alias); 7 Dec 2016 18:48:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 79237 invoked by uid 89); 7 Dec 2016 18:48:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=glenn, Glenn, dell, xcopy X-HELO: mail-vk0-f47.google.com Received: from mail-vk0-f47.google.com (HELO mail-vk0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Dec 2016 18:48:19 +0000 Received: by mail-vk0-f47.google.com with SMTP id p9so217104995vkd.3 for ; Wed, 07 Dec 2016 10:48:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=uhEtq1IMRIln2PyiBjeJ+6kS/YODr83YtjdlO9G7jjQ=; b=KZxLqYEcJZgWDvu7AFnZJdujwvMxyclbn0wdEZLsWYyQEYVEnEaGKSzQ7od83+KLXt 1g5MlQ6Ixpj7icKk6ZC9eA56SW1CLD+rCpBhsxq3pMqG84FoW2z9M/nLOmljq4jfnSjq qHbQSxlcEfV0mvDngk2H9aqXFYquwhMO8/E7BRTm1iF24gA4ZUzmlz11ZrV4SRl+5e4P IunZZwxPJeIlH72yeU4VSeUKkGPiDKLGDzOvVVpcj9BDHh5ftK0P2aGtiM6OjbTP6x7a ZetTgitylTliJuD+dWL98B3BfC7Pe3Rn9svblEsTDSaA5Wke1AdAHa8woqaKx8cQVBqj VuNw== X-Gm-Message-State: AKaTC02Ay0lh8/HEYxiZvsB5FYI9UAfjnNO+5NYOPhXW6Yxs6CtXo0tll5gDiuq9g4PoaNkCI7qrzonPhaBi4Q== X-Received: by 10.31.160.214 with SMTP id j205mr26308039vke.92.1481136494237; Wed, 07 Dec 2016 10:48:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.34.112 with HTTP; Wed, 7 Dec 2016 10:48:13 -0800 (PST) In-Reply-To: References: From: Stephen John Smoogen Date: Wed, 07 Dec 2016 18:48:00 -0000 Message-ID: Subject: Re: permission question To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00060.txt.bz2 On 7 December 2016 at 13:22, Greg Freemyer wrote: > On Wed, Dec 7, 2016 at 10:47 AM, Greg Freemyer wrote: >> I have a USB drive with 100,000's of thousands of files I put on it >> from one PC. I've built that dataset up over a couple years. >> >> I moved the USB drive to a different PC and I'm trying to rsync it to >> another drive. >> >> 99.9% of the data seems to have made its way from one drive to the other. >> >> But I got a few permission denied messages when reading files off of >> the source drive. >> >> I really don't need anything but the equivalent of 666 permissions for >> the source drive files. >> >> I know linux well, but I have screwed up Windows permissions once too often. >> >> Is there a command I should run in Windows or cygwin to grant my user >> read/write permission to all of the files? >> >> Or I can parse the rsync log file I created and look for the handful >> of files that failed with permission denied. >> >> Thanks > > It's worst than I thought. > > I used rsync -avP to make the copy of the folders / files. (Its > 2.5TB, so it took all day yesterday to run). > > I'm trying now to use "rsync -cvr" to compare the checksums of the > source / destination and re-copy any that got corrupted. > > The trouble is lots of the destination files can't be read due to > permission issues, so the compare doesn't match and the rsync is > copying the same files again. > > I admit to having little understanding of the Windows / cygwin > permissions integration. Or even Windows permissions standalone. I > do understand Linux permissions well. > > I'm tempted to just do a "chmod 755 -R .", but I've just had too many > windows permission issues in the last year to start trying things > without guidance. That would probably make things worse. I believe that Windows permissions are like attribs in Linux (which moves it into witchcraft and sorcery). For dealing with this sort of issue I would look at using the xcopy that Glenn from dell mentioned. > Greg > > -- > 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 > -- Stephen J Smoogen. -- 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