This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: setfacl can kill a drive
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 9 Apr 2015 22:05:48 -0500
- Subject: Re: setfacl can kill a drive
- Authentication-results: sourceware.org; auth=none
- References: <CAAXzdLUZvdNw_UyOXMa5ozoGuG7zjPnz=rRLELFBoEF8+miZUA at mail dot gmail dot com> <CAAXzdLUgnjfeA=LkrdUp68zHterj5hj5BtLqh0W=TCAn1zPrpQ at mail dot gmail dot com> <20150409074328 dot GO2819 at calimero dot vinschen dot de> <CAAXzdLV4=f5hbmKH_6r6GM=cF4bw0QXqkmivZCh2M4y5ATagxA at mail dot gmail dot com> <CADi7v6++4rbLPD0ZuCMrnONs+kYFMFf6hhS_0SXVGSNwoMTtNg at mail dot gmail dot com>
On Thu, Apr 9, 2015 at 7:57 PM, Bryan Berns wrote:
> you can probably use icacls /save AclFile to "record" the standard drive
> permissions and them apply it to the problem drive using icacls /restore.
I am not sure this is the answer. Even ignoring setfacl, I was unable to restore
acl on the root. Note again this is on a pristine virtual machine, I tried "C:"
first:
> icacls C: /save C:\acl.txt
processed file: C:
Successfully processed 1 files; Failed processing 0 files
> icacls C: /restore C:\acl.txt
C:D:(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)
(A;OICIID;FA;;;S-1-5-21-2140265281-1110791277-259586168-1000):
The system cannot find the file specified.
Successfully processed 0 files; Failed processing 1 files
Then "C:\"
> icacls C:\ /save C:\acl.txt
processed file: C:\
Successfully processed 1 files; Failed processing 0 files
> icacls C:\ /restore C:\acl.txt
C:\D:PAI(A;;FA;;;BA)(A;OICIIO;GA;;;BA)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)
(A;OICI;0x1200a9;;;BU)(A;OICIIO;SDGXGWGR;;;AU)(A;;LC;;;AU)S:
(ML;OINPIO;NW;;;HI):
The filename, directory name, or volume label syntax is incorrect.
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