X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47ACF49D.9070407@free.fr>
Date: Sat, 09 Feb 2008 01:32:29 +0100
From: Sylvain RICHARD <sr75pro@free.fr>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Uninstalling Cygwin
References: <F89A3B5A7757E8459E51BB927E971C44148F49@CSEXC11.cs.san.gva.es> <20080208152939.GD31070@ednor.casa.cgf.cx> <47AC9E75.3050709@free.fr> <20080208184038.GA2996@ednor.casa.cgf.cx>
In-Reply-To: <20080208184038.GA2996@ednor.casa.cgf.cx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christopher Faylor wrote:
> On Fri, Feb 08, 2008 at 07:24:53PM +0100, Sylvain RICHARD wrote:
>   
>> I have to say that I agree with cgf.  I should have looked in the FAQ
>> before, it would have saved some typing.  I have had exactly the same
>> issue before and perhaps didn't find the answer at that time.  People
>> who come from a UNIX background tend to use chown or chmod but may have
>> already deleted chown.exe and chmod.exe.  Perhaps adding the exact
>> cacls invocation in the FAQ would be helpful
>>     
>
> Good point.  Do you (or anyone) want to suggest some wording for that
> section of the FAQ?
>
> cgf
>   
Not fully tested as I do not have full control over the machine I work 
on now, but something along the lines of:
- run
takeown /f c:\cygwin /a /r /d y
cacls c:\cygwin0 /t /g Administrators:F
- delete c:\cygwin in Explorer
should be a start.

However,
1) This is for English versions of Windows only:
/d y (answer "yes") can become /d o("oui"), and perhaps /d j("ja"), /d 
s("si"),...
"Administrators" is localized too

2)
http://www.ss64.com/nt/cacls.html says:
"Errors when changing permissions
If a user or group has a permission on a file or folder and you grant a 
second permission to the same user/group on the same folder, NTFS will 
sometimes produce the error message "The parameter is incorrect" To fix 
this (or prevent it happening) revoke the permission first (/e /r) and 
then reapply (/e /g)"

Good night

Sylvain RICHARD

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

