From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98007 invoked by alias); 7 Dec 2016 18:22:53 -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 97992 invoked by uid 89); 7 Dec 2016 18:22:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=folders, gregfreemyergmailcom, sk:gregfr, greg.freemyer@gmail.com X-HELO: mail-io0-f181.google.com Received: from mail-io0-f181.google.com (HELO mail-io0-f181.google.com) (209.85.223.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Dec 2016 18:22:51 +0000 Received: by mail-io0-f181.google.com with SMTP id a124so726103351ioe.2 for ; Wed, 07 Dec 2016 10:22:50 -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=mVaq79SWT2v3v8pAYEoFtpWSvVm3uJA3ZS4L52R6fdU=; b=XhdqhvG9t1BpDZvgiHqyJcJBupcKtiI7uC/yzsc+j+PgonFszSm8SEBN4qE9y+RojU EfrtQ9Y6U0s/U1mCc23OarjjBlqnT2jWvIlg8vLPGOWBQI86UeTAtryWYCMABZBH0pgG faa6isCPmJj6P7XPnwwV7Ul0wDoLanHKocHEa35H32Ejb+K+ouKD52R0zblCBBan2SVh HoK9PMo1m89Tt/9DADUM3oWuUmtg6M1C+5LoWtFCoBcxoptRKkKdYKGwGH67FpvgP6cx N5sAEJAPB2fW+p9BDaT3evSs3wlq4nb4LIBKWDqdBQ7uFmooSC1+Xs0ZzFLg9c+i53Js BArw== X-Gm-Message-State: AKaTC01tro7496NZ1eaajm3H6RwrFaWGEA28vDb9beRkg7uCHUZk9f9yOdtX/E2XqILXGpJJg9td3WAqd7WvUg== X-Received: by 10.36.194.70 with SMTP id i67mr3352424itg.21.1481134969181; Wed, 07 Dec 2016 10:22:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.134.208 with HTTP; Wed, 7 Dec 2016 10:22:08 -0800 (PST) In-Reply-To: References: From: Greg Freemyer Date: Wed, 07 Dec 2016 18:22: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/msg00059.txt.bz2 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. 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