delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/16/03:46:49

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=jBoBADnivTUo/GJp+ovbdo3t3Rg0ojAd7cLIMu2iYeg
IW7aYpRW38L4CVUoTG9xzPaF0VahZMS795M1I+K2g3rVqtFu4ap8VomXV+f1kkMV
hoHXN8VVh3nfO8OjiO3ILoLQNOkj2djID5r6IcX6N6V6qlS4KtIx9P/Q1X5Zivo4
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=MSNvNUexJMLogtYGmL1zsR8X3II=; b=o1bzmz6tWyETJUtwt
ysPlX14B7AY3VPpj1vBgycCyH1TwcrxcEAsoY6CFbVcLFxGI60EgQSR/wWsbSFJg
OYrhxInsDyyTo/uNkc174Uzkaf2km/f/TzWy2oPvmQQrJzfnmTv1Jr98L704nNat
DWe44BQe7xVDRJ2jz1RNBiG1zg=
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=0.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.2
X-HELO: mail-ee0-f52.google.com
X-Received: by 10.14.94.135 with SMTP id n7mr20094114eef.40.1392540387838; Sun, 16 Feb 2014 00:46:27 -0800 (PST)
Message-ID: <53007ADE.1050309@gmail.com>
Date: Sun, 16 Feb 2014 09:46:22 +0100
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Installer cannot write to Cygwin's /usr/local/etc
References: <53001E78 DOT 8060706 AT verizon DOT net> <53006573 DOT 9080301 AT gmail DOT com> <957006624 DOT 20140216112713 AT yandex DOT ru>
In-Reply-To: <957006624.20140216112713@yandex.ru>
X-IsSubscribed: yes

On 16/02/2014 08:27, Andrey Repin wrote:
> Greetings, Marco Atzeri!
>

>> However you can check the Windows ACL with
>
>> $ cd /usr/local
>
>> /usr/local
>> $ getfacl bin
>
> I would say, if you want to see _windows_ permissions, you need to use cacls.
> gerfacl only show POSIX approximation of windows permissions.
>
>

correct.

Curious however
  NOTE: Cacls is now deprecated, please use Icacls.

but the two provide a slight different outputs:

   $ Icacls etc
etc GE-MATZERI-EU\0356EU:(F)
     BUILTIN\Administrators:(RX)
     Everyone:(RX)
     CREATOR OWNER:(OI)(CI)(IO)(F)
     CREATOR GROUP:(OI)(CI)(IO)(RX)
     Everyone:(OI)(CI)(IO)(RX)

  $ Icacls bin
bin GE-MATZERI-EU\0356EU:(F)
     BUILTIN\Administrators:(RX)
     Everyone:(RX)
     CREATOR OWNER:(OI)(CI)(IO)(F)
     CREATOR GROUP:(OI)(CI)(IO)(RX)
     Everyone:(OI)(CI)(IO)(RX)


$ cacls etc
E:\cygwin\usr\local\etc GE-MATZERI-EU\0356EU:F
                         BUILTIN\Administrators:R
                         Everyone:R
                         CREATOR OWNER:(OI)(CI)(IO)F
                         CREATOR GROUP:(OI)(CI)(IO)R
                         Everyone:(OI)(CI)(IO)R


$ cacls bin
E:\cygwin\usr\local\bin GE-MATZERI-EU\0356EU:F
                         BUILTIN\Administrators:R
                         Everyone:R
                         CREATOR OWNER:(OI)(CI)(IO)F
                         CREATOR GROUP:(OI)(CI)(IO)R
                         Everyone:(OI)(CI)(IO)R


cheers
Marco

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