From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32129 invoked by alias); 7 Dec 2016 23:06:30 -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 30769 invoked by uid 89); 7 Dec 2016 23:06: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,CYGWIN_OWNER_BODY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Owner, H*F:D*rogers.com, H*UA:14.0, H*x:14.0 X-HELO: nm5-vm7.access.bullet.mail.bf1.yahoo.com Received: from nm5-vm7.access.bullet.mail.bf1.yahoo.com (HELO nm5-vm7.access.bullet.mail.bf1.yahoo.com) (216.109.114.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Dec 2016 23:06:19 +0000 Received: from [66.196.81.164] by nm5.access.bullet.mail.bf1.yahoo.com with NNFMP; 07 Dec 2016 23:06:18 -0000 Received: from [98.138.226.241] by tm10.access.bullet.mail.bf1.yahoo.com with NNFMP; 07 Dec 2016 23:06:17 -0000 Received: from [127.0.0.1] by smtp112.sbc.mail.ne1.yahoo.com with NNFMP; 07 Dec 2016 23:06:17 -0000 X-Yahoo-SMTP: _oUbE.SswBCQ_d_LvSIk7sZfv6R7Is8n9OVRVjJJh3dhqEgGPCs- From: "Michel LaBarre" To: "'Greg Freemyer'" , , References: In-Reply-To: Subject: RE: permission question Date: Wed, 07 Dec 2016 23:06:00 -0000 Message-ID: <000501d250de$83693e40$8a3bbac0$@rogers.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00077.txt.bz2 > -----Original Message----- > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On > Behalf Of Greg Freemyer > Sent: December-07-16 5:08 PM > To: Brian.Inglis@systematicsw.ab.ca; cygwin@cygwin.com > Subject: Re: permission question >=20 > 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. >=20 > I can't tell you how much I love Windows security permissions. :( >=20 > 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). >=20 > Neither cygwin, nor windows says I have permission to delete them. >=20 > Any idea how I can do it short of reformating. You should be able to take ownership recursively of the offending files and= then remove them. (Right click - Security =3D> Advanced =3D> Owner Tab =3D> Edit (you may be = prompted by UAC for admin credentials) =3D> Other users or groups =3D> pick= one Don't forget to select "Replace owner on subcontainers and objects". In a = separate step, reset the permissions recursively to get full control, then = delete everything.) By the way, did you ever try to setup fstab to apply noacl to default mount= s before doing your rsynch? I wonder if that would have reduced your problems. >=20 > Thanks > Greg > -- > Greg Freemyer >=20 >=20 > 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 > > >=20 > -- > 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