delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/07/15/21:47:10

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 135CA3850401
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=pounceofcats.com
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=briand AT pounceofcats DOT com
X-Originating-IP: 91.207.175.203
Date: Wed, 15 Jul 2020 18:46:07 -0700
From: <briand AT pounceofcats DOT com>
To: Bill Stewart <bstewart AT iname DOT com>
Subject: Re: need to fix permissions
Message-ID: <20200715184608.45ce7387@quarternote>
In-Reply-To: <CANV9t=ShfgWOMCxzdiEoGkN0zXbbebqF0VcvdoAOWH_AnyL3Gw@mail.gmail.com>
References: <20200714173348 DOT 4af3be3f AT quarternote>
<CANV9t=ShfgWOMCxzdiEoGkN0zXbbebqF0VcvdoAOWH_AnyL3Gw AT mail DOT gmail DOT 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>
Cc: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Wed, 15 Jul 2020 07:49:30 -0600
Bill Stewart <bstewart AT iname DOT 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

- Raw text -


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