setfacl can kill a drive

Steven Penny svnpenn@gmail.com
Fri Apr 10 03:38:00 GMT 2015


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



More information about the Cygwin mailing list