delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.9 required=5.0 tests=BAYES_20,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Jens Scheidtmann <Jens DOT Scheidtmann AT gmail DOT com> |
Subject: | Uninstalling Cygwin from a harddisk mounted to another computer |
Date: | Mon, 31 Dec 2012 10:33:56 +0000 (UTC) |
Lines: | 32 |
Message-ID: | <loom.20121231T111906-24@post.gmane.org> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
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 |
Dear all, I had difficulties removing cygwin from a harddisk which was attached to another windows computer, due to a failure of the primary computer. Especially the ~/.ssh directories were paticularly restistant and those were the folders I had to take care of. Cygwin was installed on an NTFS file system. Cause of the problem: The GUIDs of the users of the primary computer were not present on the computer from which I tried to remove cygwin, so I got "Permission denied" errors from Windows explorer. Resolution: Take ownership of the files and folders. Reset permissions for the folder and files. This can be accomplished on the command line by: 1. Open cmd.exe as administrator 2. Take ownership: $ takeown /f "c:\cygwin" /r /d Y (Note: last parameter answers Yes to all questions, but is locale dependend. I had to use "J" instead. YMMV.) 3. Reset permissions: $ icacls "c:\cygwin" /T /Q /C /reset Best Regards, Jens -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |