delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/07/18:06:47

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:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=rKz3kj/BEDvn+foxkFqZOOZbdLIm/iSLN91B2c3/aju
XP3pfEr5qiEfW2X/NT0qsOvHHD6zThVBZCFV6E6/zF5Pdf1zH6/50iJ02dE3EJU0
GcXMdRcrmTR3zmFoc8nfgjq4kFSA5uhDITN8QTHrV/P9+ryVwTnpJYIt37yXVw/8
=
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:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
s=default; bh=QARLi9vr1HDbBtpOMvrUMHNuMRM=; b=UOMBwVHn5qk9pqdW6
WmMtCNzU4jZLuKyP2Ks9w/90AiaEtNwxzl8fX2YzeuaRwe7/mTDlqK1vH0939YQb
cll6XfWmYTlDcXBYRvfcmw5jQSxKEYLExaSmkzE50yvSkfENT7YQcWdCByRkGtpB
cOSUVipv2BP+/2qaSKQV1kixAA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=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
X-Yahoo-SMTP: _oUbE.SswBCQ_d_LvSIk7sZfv6R7Is8n9OVRVjJJh3dhqEgGPCs-
From: "Michel LaBarre" <michel DOT labarre AT rogers DOT com>
To: "'Greg Freemyer'" <greg DOT freemyer AT gmail DOT com>,
<Brian DOT Inglis AT systematicsw DOT ab DOT ca>, <cygwin AT cygwin DOT com>
References: <CAGpXXZ+VL8iUX0bsXavUiOThLnr1aVKy2H5o_hOOSkCBee3pog AT mail DOT gmail DOT com> <CAGpXXZJj=c+MnUHTrk1aaf-kx3qy8uFVo9psRaNks0em2bKT_Q AT mail DOT gmail DOT com> <CANnLRdgjY5oQF1hLE75tg_b4ut881PFp+=uWB6jtN1-ya7sf2w AT mail DOT gmail DOT com> <CAGpXXZJKZFuE-yNpZJ0syjgShdkigV+kj5XudS71r0Mw+2D3Bw AT mail DOT gmail DOT com> <CACoZoo3xmZbi_=NK-xj8wLx52v5OFS-TcHvYf=RROtMJYkhyDg AT mail DOT gmail DOT com> <b3da66f3-5baa-3c02-643e-f540047bb9f8 AT SystematicSw DOT ab DOT ca> <CAGpXXZJRcoSzg4kw_jmQP5zQqVExhNck0ioE+hZPGSCZRojmxQ AT mail DOT gmail DOT com>
In-Reply-To: <CAGpXXZJRcoSzg4kw_jmQP5zQqVExhNck0ioE+hZPGSCZRojmxQ@mail.gmail.com>
Subject: RE: permission question
Date: Wed, 7 Dec 2016 18:06:15 -0500
Message-ID: <000501d250de$83693e40$8a3bbac0$@rogers.com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id uB7N6jum017664


> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
> Behalf Of Greg Freemyer
> Sent: December-07-16 5:08 PM
> To: Brian DOT Inglis AT systematicsw DOT ab DOT ca; cygwin AT cygwin DOT com
> Subject: Re: permission question
> 
> 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.


You should be able to take ownership recursively of the offending files and then remove them.
(Right click - Security => Advanced => Owner Tab => Edit (you may be prompted by UAC for admin credentials) => Other users or groups => 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 mounts before doing your rsynch?
I wonder if that would have reduced your problems.


> 
> Thanks
> Greg
> --
> Greg Freemyer
> 
> 
> On Wed, Dec 7, 2016 at 3:39 PM, Brian Inglis
> <Brian DOT Inglis AT systematicsw DOT ab DOT ca> 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


--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019