This is the mail archive of the
cygwin
mailing list for the Cygwin project.
setfacl can kill a drive
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 8 Apr 2015 05:17:29 -0500
- Subject: setfacl can kill a drive
- Authentication-results: sourceware.org; auth=none
I upgraded to the new Cygwin today, why is this command producing different
permissions? Moreover how do I get it to produce sane results?
$ cd /cygdrive/c
$ touch ~/alpha.txt ~+/alpha.txt
$ ls -l ~/alpha.txt ~+/alpha.txt
-rw-rwxr--+ 1 Steven None 0 Apr 8 05:06 /cygdrive/c/alpha.txt
-rw-r--r-- 1 Steven None 0 Apr 8 05:06 /home/Steven/alpha.txt
Also I discovered this
$ setfacl -b /cygdrive/c
After that you get this
C:\ is not accessible.
Access is denied.
Luckily this was in a virtual machine. Otherwise, can this be undone? This is
very dangerous, and I feel it should be protected similarly to
"rm --no-preserve-root"
--
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