From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58449 invoked by alias); 7 Dec 2016 22:09:19 -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 58433 invoked by uid 89); 7 Dec 2016 22:09:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:briani, U*Brian.Inglis, brianinglissystematicswabca, sk:BrianI X-HELO: mail-io0-f174.google.com Received: from mail-io0-f174.google.com (HELO mail-io0-f174.google.com) (209.85.223.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Dec 2016 22:09:08 +0000 Received: by mail-io0-f174.google.com with SMTP id j65so736900966iof.0 for ; Wed, 07 Dec 2016 14:09:08 -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=GOWNt16OxiuLBz6H4pGguFfTLYM/PDrWLRXNb/W5RpU=; b=L4JPE8RS8wzAa/alRrKtS0nDIIlsetEqjeGHv+F/k64bw7QWHcpK4bGMBJbZbLD8IL xe9UNsc630n+wwp/HaoIccJPoguqxxx4ol/bZtBySMcBYN58hvndOMnDGXqTCMOtnBXW f64tBE78zm3DbDOD5wns5f021Q/n+EuPw5xhptSp0Jpr//enWH/xB7JZpqSZhWL4mcVi G5O0CQDWzhZ1trq/+3JC3n058hqFODfW/+MM81Nc+538mKazmC+QDQDDBbVWTMHsLllL ararAuIHtPa2mz6uPWCc1ulM7I8cRttHdkrN3G9RSBRRzrfNuuv1ZiHhwv+75ULl2qvS 13ZA== X-Gm-Message-State: AKaTC033d7zIvFDGjF0y4L4y9kxTI8qnjciP+VNQw4tip86E1gIAkYXp2D3yt4+mpTgKTtChKPB4X8LO+LCpwQ== X-Received: by 10.36.196.135 with SMTP id v129mr4306405itf.100.1481148546959; Wed, 07 Dec 2016 14:09:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.134.208 with HTTP; Wed, 7 Dec 2016 14:08:26 -0800 (PST) In-Reply-To: References: From: Greg Freemyer Date: Wed, 07 Dec 2016 22:09:00 -0000 Message-ID: Subject: Re: permission question To: Brian.Inglis@systematicsw.ab.ca, cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00074.txt.bz2 If I'm going to relegate rsync to the trash bin due to it not supporting Windows permissions well enough to be useful, I've got other Windows recursive copy tools I use that don't preserve permissions either. I can't tell you how much I love Windows security permissions. :( In the mean time I have a huge number of folders now on my destination drive I need to delete. (over a million files it seems). Neither cygwin, nor windows says I have permission to delete them. Any idea how I can do it short of reformating. Thanks Greg -- Greg Freemyer On Wed, Dec 7, 2016 at 3:39 PM, Brian Inglis wrote: > On 2016-12-07 13:12, Erik Soderquist wrote: >>> I really like cygwin and have used it for a decade plus. Only in the >>> last year or 18-months have I noticed significant permission issues >>> that slow down my workflow. >>> >>> Copying these folders/files from one drive to another is a task I'd >>> like to accomplish, but even more importantly I'd like to understand >>> how to work with permissions in cygwin. As it is, I'm concerned I >>> will have to leave cygwin behind and I don't want to do that. >> >> I've been a Windows and Linux admin for years, and Windows permissions >> can be a pain, but can also be very granular. >> >> What I normally do for something like this is use robocopy's "backup mode" >> switch to bypass permissions on the source entirely and intentionally not >> copy the permissions to the destination, then set up the permissions I want >> on the destination after the copy is complete. >> >> The "backup mode" option requires either backup operator or local admin >> permissions to use. > > Concur and recommend for local copies: > > robocopy src dst /s /sl /xj /copyall /zb /nfl /ndl /np /mt:8 /r:0 /w:0 > > to copy non-empty directories; keep winsymlinks as is; skip junctions; > all info; backup fallback; no file, directory, or progress logging; > 8 threads, no retries, no waits: use /copy (like cp -p) instead of > /copyall to skip security info. > > -- > Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada > > -- > 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 > -- 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