X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=T4DyHI4 dpMrNQL3lSeI/jr3cTSo4yQ/X5jALG+01+9oVp2lQ2noZGuVoDbxFt0eDzNj2AW4 e/Q85xtvoq6VxHtEYOur4fLda3PEr1tySdX/3NJLCw7Jq86vZzFudyx3IkyVkjfs Gjy/GwyJ3e9VDOJvXj+rHfejAIKpuoA288EU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=7HBE7EwdLiUTe tThIB2COLEpMcI=; b=e5ZKKi0/fHVVgt5w/sKvAxuj32du1rvPNgxGHWqKkDEr1 /VbH1TZSCNxxyAx/CBqKQ5dCLQvhm0+MU9TlcO9LE0P5W7x5beecKQ7z1C5rrXfL 1jJfAITZ6MhFNa85w0LXxxl6G/EXyG0/d7a7ZXLQBfDBtyx7fFYre2lgo7vIP8= 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 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 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 In-Reply-To: References: From: Greg Freemyer Date: Wed, 7 Dec 2016 17:08:26 -0500 Message-ID: Subject: Re: permission question To: Brian DOT Inglis AT systematicsw DOT ab DOT ca, cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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