X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 135CA3850401
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=pounceofcats.com
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=briand@pounceofcats.com
X-Originating-IP: 91.207.175.203
Date: Wed, 15 Jul 2020 18:46:07 -0700
From: <briand@pounceofcats.com>
To: Bill Stewart <bstewart@iname.com>
Subject: Re: need to fix permissions
Message-ID: <20200715184608.45ce7387@quarternote>
In-Reply-To: <CANV9t=ShfgWOMCxzdiEoGkN0zXbbebqF0VcvdoAOWH_AnyL3Gw@mail.gmail.com>
References: <20200714173348.4af3be3f@quarternote>
 <CANV9t=ShfgWOMCxzdiEoGkN0zXbbebqF0VcvdoAOWH_AnyL3Gw@mail.gmail.com>
X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
MIME-Version: 1.0
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
 KAM_DMARC_STATUS, 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-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On Wed, 15 Jul 2020 07:49:30 -0600
Bill Stewart <bstewart@iname.com> wrote:

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

Thank you very much !

I didn't see anybody mention that attrib step, in all the _many_ docs that i read.



-- 
Brian

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