This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Installer cannot write to Cygwin's /usr/local/etc
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Marco Atzeri <marco dot atzeri at gmail dot com>, cygwin at cygwin dot com
- Date: Sun, 16 Feb 2014 12:57:20 +0400
- Subject: Re: Installer cannot write to Cygwin's /usr/local/etc
- Authentication-results: sourceware.org; auth=none
- References: <53001E78 dot 8060706 at verizon dot net> <53006573 dot 9080301 at gmail dot com> <957006624 dot 20140216112713 at yandex dot ru> <53007ADE dot 1050309 at gmail dot com>
- Reply-to: cygwin at cygwin dot com
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:
I have no access to my Win7 box right now (I've somehow managed to lock my
account while experimenting with `net user' command in the light of new Cygwin
functionality, and being swamped by ongoing work load decided to postpone
investigation... though it is probably worth a warning...)
What icacls says about "X" meaning? (That seems to be the only difference?)
(BTW, you can specify multiple objects for [i]cacls to inspect at once.)
> $ 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
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 16.02.2014, <12:50>
Sorry for my terrible english...
--
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