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: To: Bill Stewart Subject: Re: need to fix permissions Message-ID: <20200715184608.45ce7387@quarternote> In-Reply-To: References: <20200714173348 DOT 4af3be3f AT quarternote> 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On Wed, 15 Jul 2020 07:49:30 -0600 Bill Stewart wrote: > On Tue, Jul 14, 2020 at 6:34 PM 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