* Uninstalling Cygwin from a harddisk mounted to another computer
@ 2012-12-31 10:39 Jens Scheidtmann
0 siblings, 0 replies; only message in thread
From: Jens Scheidtmann @ 2012-12-31 10:39 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-31 10:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-31 10:39 Uninstalling Cygwin from a harddisk mounted to another computer Jens Scheidtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).