delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/08/06:17:52

X-Recipient: archive-cygwin AT delorie DOT 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:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=HOWSQt9Zm+gxhwEhFRigRNdfZE6Hv
kiW3GSKbRR9Iln327Hy6LYnOXeMYEo8+ReQWfkkgWHMjZjMuo/ISDD16d8z9hYRF
v5kE/y8Ouuyacvcnda+wgFDA72ieQdliT701QwSItLziGZ5y5y9DThQ7O/8Fwojo
xWfgkZXFBhkP3A=
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:date:message-id:subject:from:to
:content-type; s=default; bh=k7KSEM2s5K1572wNYi0DX+YaWwc=; b=rfk
aZFvFFd3lgAln0bRB31qHz2shtXIG8RyBzkibR7mR/vqI3LkDk34i2SRWVH4XlM8
yrFRB6lKlCke4g6R27uo7/HelLLXTD79ma+fHHguK2Q31k78BQbFQ7UxtZ6bUJ33
Qfq8Usf91O/5fgqYRd5a/0GoJo0iDbVSGgZ/7npA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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-f175.google.com
MIME-Version: 1.0
X-Received: by 10.50.111.233 with SMTP id il9mr10824293igb.13.1428488249959; Wed, 08 Apr 2015 03:17:29 -0700 (PDT)
Date: Wed, 8 Apr 2015 05:17:29 -0500
Message-ID: <CAAXzdLUZvdNw_UyOXMa5ozoGuG7zjPnz=rRLELFBoEF8+miZUA@mail.gmail.com>
Subject: setfacl can kill a drive
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019