delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/07/15/09:50:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AB3E738708CA
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=iname.com
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=bstewart AT iname DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com;
s=dbd5af2cbaf7; t=1594820998;
bh=ugyE+Ydi5cvWvG4SixgluphJNr7pmcOUYIV6+/cYfws=;
h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To;
b=Qsy+9ksBrehYzryebRMvc2IevXgCD4qRNCNj+ewnxN6uDRe03uY09+WExCedCBwDB
fKd7UVzKcISFLYAC7AMljeF7olQSszdgFOK1u/br2nVmSFCgUcxkkEDVtZgWwUkv5G
T5eOTuBu1BHrRMI+uLGxKnch5RBc8himM6S/MI4o=
X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79
X-Gm-Message-State: AOAM530oT8bpq+Z9nnLbTE1ek2Robc2X3udk58WwrFwgTxPbqyalX3YW
1y1ojM9eGIrUQvXiCjiZ295R8+4Gv871UsC2WMw=
X-Google-Smtp-Source: ABdhPJz/xj1HYHQSwrNwji9T1DVy0F/8Fqn6dStPe6kpZ1D1Zl6H71qdeU6bRLQxDQlZUwyEmIzkbY0Dzl2eT0TU5H0=
X-Received: by 2002:a9d:7188:: with SMTP id o8mr9116673otj.290.1594820996886;
Wed, 15 Jul 2020 06:49:56 -0700 (PDT)
MIME-Version: 1.0
References: <20200714173348 DOT 4af3be3f AT quarternote>
In-Reply-To: <20200714173348.4af3be3f@quarternote>
From: Bill Stewart <bstewart AT iname DOT com>
Date: Wed, 15 Jul 2020 07:49:30 -0600
X-Gmail-Original-Message-ID: <CANV9t=ShfgWOMCxzdiEoGkN0zXbbebqF0VcvdoAOWH_AnyL3Gw AT mail DOT gmail DOT com>
Message-ID: <CANV9t=ShfgWOMCxzdiEoGkN0zXbbebqF0VcvdoAOWH_AnyL3Gw@mail.gmail.com>
Subject: Re: need to fix permissions
To: cygwin AT cygwin DOT com
X-Provags-ID: V03:K1:gZ/Iy/GpAXB9AYvXmpkf/TPynni3iMLNNpvyOIPfXtmqAntynG9
VFa1EOWrlf6a7u0x6+27AFkxtOnhhha3xKxHWr9rCIvMAshBg3i7dTXycF9DOeDVqcqMO/r
T70MPI1r6Yp76IJDw3F5r6E3iJkHJ9xoOhfyj5xg7U1aBttS16KQjJVL2Ua0ZVNy08CXQm4
kMu9v3PcHhInvgYMzw4ng==
X-UI-Out-Filterresults: notjunk:1;V03:K0:8ysoETx6gPQ=:5jPBM+YTJNYkwXb8WSpd/s
RicfyKIeMcitAHZyRmbD7OpvANXLaHzSCRow8+qZUKnkd7XKB4v6rth1+DB81QUggYFu6awur
wNGCIK1+VhDkENpc8UC09NjSjVH8uYafToqj5851H5THuhmiyW1xnX9u6pwBByjCsX1IagzOj
3UGVmj3ZRXe5xcb8Kjb1m9+9m9hA8NP1xyUI+dCCsEphTKrbOwSxcfxxmCiL/6++NhI36wDqZ
OEIVYBPuW0r5EVoVGyGoAn3aTAaicewTO1v/J8horaFJsXjU3+XeN6XsSxNOyjrS/nUb72Ofn
QUrP6DkQZfjF/h/6f0jmgOO5czbTD6Q99l91V7G1kZeZKrCHhQ3gVL3i20Ct8H+PZW3KxdQ4q
A1xVD5ZMpT5rBG9KSisrXEfTChlsGdozEq+JNgq/OR593BQ8hZiJndpeW8fnSMZojiLZ0LSqq
d8Gv3u9PKzSeUmiSGyjXvuKN446IIerub+18R/BBykAXwsDpCcnNL80SB+N7t92b9my44P/Wd
PW/PH2cXdlml2MRUtgh2dminBrDAjbUKv7s3PeA2fosmA1xMPQBSUJN+q7iXlkgboKukbFaDe
XjUBM4galPW3EngFBzHDcAy3rBHRPFYhHW4RNq3/M/fzml1OVMoKOPqViz173ybSxni9aZlE2
hTHS12jXTh6D+o13LM72qs7pDou35OoBvIpmF1/HsOvTppHoEdDnQanz4bicw+kH1bjOU6WDb
ocxtkVdCSVl7d5XrmBlFKdCeZPMDIpXbfTtenMpVWF/aRm14HWTdA4E7KsHREMxPCD7oyCQ6G
qimDysooXpbhwlU9ZlHqRd7/iLriDJ2kuD4+M9uVCJvB85DdAuqibsVScqbFJEzWdWRTwcC0l
CBnz5+Dv1XTIf9xJA29gOUoAK3ccdvCUPd4otkBVIpcM7rol5R5GIoRFnmpczWqqjT0oYWiT1
8kaXBUF3zPA+WkSaQ6eoev43VmtddFJ8LW1GxfXZnV/nV+1lqWPNE/Yi9bJ9BRxlYypyEQ9fo
rPv1XHqBuqEYRjlJzSzipES8xipXT+PS0CdfPoPAC0zbxB+1FDoi7qFPUsjvL7j/w1SeSkCb3
5wSqU1eM37BFEhZmX+SzUIm2qWlq4hfs9mI1lA3JtS0G4nTtM+hI0kAsysqdjbIlagsbUFiKe
uLmKz+CjCo+YYOkWVxsiNJ0shoY78XLsykXebxxVhUpfVim5cpGhl6yrfveIRe1jXC/OaNGGL
5Odm6/2Hjm2J2/WGj8P3+ifS0UwgZyOZwFeqpOA==
X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Tue, Jul 14, 2020 at 6:34 PM <briand@...> wrote:

the cygwin home folder is giving me a LOT of trouble with access denied.
>
> i've tried takeown and icacls to fix permissions, and strangely it worked
> for _Some_ files, but i still have files which i need to back up which are
> causing "access denied" errors.
>
> i'm hoping someone who understands how cygwin has set permissions can give
> me a way to fix-up the permissions in ntfs land.
>

The following is what I have used successfully in the past and should reset
everything:

1. Open an elevated PowerShell or cmd.exe shell

2. Take ownership to Administrators group:

takeown /F "C:\cygwin" /A /R /D Y

3. Reset all file permissions:

icacls "C:\cygwin" /reset /T /C

4. Reset the file attributes:

attrib -h -r -s "C:cygwin\*" /s

Bill
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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