delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/07/15:40:02

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:subject:references:to:from:reply-to:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Z0NTo0+wplUUcjjI
EZ1zjiNzW7+3FT1Jw1PeOgIwfkzJRIniU6zncErxYl9iViyP1hxD4/buyvn//5Xe
rovgYDgE7I1IGcp+pyqMmAgIk9iH7ysmXUEJIc1ET8mTI8RdMKY01nYJNu0cXuHk
Bavrz0OWHFzcgpYQ7HV2F3V8P/w=
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:subject:references:to:from:reply-to:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=2FzUxpk/nje7Wh7Qx/vR6i
Yl0Bg=; b=tyWl6BBruM+RUYJBScODW4CzuM5ag54EaUf2rOKo8+P+4YCp6g4Ybo
nqvCCz1Y+pttz4Ge71vIbZ/zL8tFKoYbI9kNjk5PTRXiRrwx2nIY/qBG2AvANoAX
AGK6B2Q3K+mZjHPhp7JJ43wdYV1EF3HKukMgwlFr2EawUsTSQ21Jk=
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.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:shaw.ca, H*r:shaw.ca, HX-HELO:sk:smtp-ou, H*RU:shaw.ca
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=JLBLi4Cb c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=4p2So48Ubt29w83NVkcA:9 a=QEXdDO2ut3YA:10
Subject: Re: permission question
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>
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Message-ID: <b3da66f3-5baa-3c02-643e-f540047bb9f8@SystematicSw.ab.ca>
Date: Wed, 7 Dec 2016 13:39:41 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <CACoZoo3xmZbi_=NK-xj8wLx52v5OFS-TcHvYf=RROtMJYkhyDg@mail.gmail.com>
X-CMAE-Envelope: MS4wfLDLuQgcqpmpG2iujgmxyX6GMiMAcZn5j5o09FqrharcAUkyRkv20tM4hCGGbfb3B1FgnnTFHa2j0Ix3WqDm5TiThWGrf/7HVSobWr0pvoUyz4okMfoS pQNh0mpxy8DSMUxqrqP5bcYoIu8I+ZRlj2ZjcHD+dzQc05/pnMyu46Z5Vg3WkXzY9n459X3w62i71Q==
X-IsSubscribed: yes

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

- Raw text -


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