X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=r3
	S5Oa6inxglWL0ffcARQphG7CM4u8VVYQOX22k0XxAqnOzI75ZOzI8SjmQUFSY3X5
	smheot7UFzF3tUTQnP+ExkSGoNzIqJPwbYKn1DTKIMFegFxxvwa9No+lwd+xtR/f
	nFE2LR7H1UWMyczaEJqNis3BvoZO8X4dVlxqb12UQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=q7fD7tbW
	95NQwSoNrJb6U2EH2l4=; b=amP2ARc0Rzr7nyYAztNkPXWUKbi6FzGiMD5NpN/4
	GgK+7xZWGg4r5ZF38BSO2vvWg2RYlWkbnXNLjBau5/RaX3t+jfe5FO0mN4Tl0Mzt
	4aNgxIo/50aTAjdu4lY/lnWwcv5IEyecdKGl46W/aIr599LpG3Cewt6ON+IE6lF/
	aG4=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ie0-f180.google.com
MIME-Version: 1.0
X-Received: by 10.107.34.210 with SMTP id i201mr52377239ioi.1.1428637089880; Thu, 09 Apr 2015 20:38:09 -0700 (PDT)
In-Reply-To: <CAAXzdLWbVS9g4zbn9WBVinighLy1NkA++iWm1MEyTd3b0bWrHw@mail.gmail.com>
References: <CAAXzdLUZvdNw_UyOXMa5ozoGuG7zjPnz=rRLELFBoEF8+miZUA@mail.gmail.com>	<CAAXzdLUgnjfeA=LkrdUp68zHterj5hj5BtLqh0W=TCAn1zPrpQ@mail.gmail.com>	<20150409074328.GO2819@calimero.vinschen.de>	<CAAXzdLV4=f5hbmKH_6r6GM=cF4bw0QXqkmivZCh2M4y5ATagxA@mail.gmail.com>	<CADi7v6++4rbLPD0ZuCMrnONs+kYFMFf6hhS_0SXVGSNwoMTtNg@mail.gmail.com>	<CAAXzdLWbVS9g4zbn9WBVinighLy1NkA++iWm1MEyTd3b0bWrHw@mail.gmail.com>
Date: Thu, 9 Apr 2015 22:38:09 -0500
Message-ID: <CAAXzdLWFNJXTS5P7ZKufcBS6bSMjxsEmZvKToQZOV5Z0_0fT-Q@mail.gmail.com>
Subject: Re: setfacl can kill a drive
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

On Thu, Apr 9, 2015 at 10:05 PM, Steven Penny wrote:
> Even ignoring setfacl, I was unable to restore acl on the root.

After reading this page
http://support.microsoft.com/kb/237701

It appears I was able to use icacls on root with this syntax

    $ icacls 'C:\.' /save 'C:\acl.txt'
    processed file: C:\.
    Successfully processed 1 files; Failed processing 0 files

    $ icacls 'C:\.' /restore 'C:\acl.txt'
    processed file: C:\.\.
    Successfully processed 1 files; Failed processing 0 files

However after introducing setfacl it fails

    $ setfacl --remove-all /cygdrive/c

    $ icacls 'C:\.' /restore 'C:\acl.txt'
    C:\.\.: Access is denied.
    Successfully processed 0 files; Failed processing 1 files

--
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

