delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/16/02:15:26

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=fmaUXokAZgn8hWwPiFsfPkaH+QwoqbbiB2rB0hKwcVc
oW+8Qj7lFHSuaBgaKMj9euLEDiPeeqIfcDxEoCfY19ArN6OIL5wI4lwcr0bs1PKj
fFk+fBVZF9yNDKmcsGxMPuexxLq4DYY+QA6aUrFZx93/4/wL8Th18by5b704m9Qk
=
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=h/YbMEwwlLvBuwIEWJ9KtP2UetA=; b=nwJXlgSry+ymOtjmm
1V8JcYfEt2jsiPJFqeVmbJKER4pfoCiaxhi+XJOtELiQJMgeOLP9O0gzwJ6X8fnQ
DBTtQJebtDz0Qo6LvRc3I0d6J0czI37hK/GTTJzYA4cLCraibETAwPN1UC7l8/dU
6MQ9K8MOSPps8A1UMxOEV424p0=
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-f51.google.com
X-Received: by 10.14.104.6 with SMTP id h6mr19490141eeg.29.1392534903986; Sat, 15 Feb 2014 23:15:03 -0800 (PST)
Message-ID: <53006573.9080301@gmail.com>
Date: Sun, 16 Feb 2014 08:14:59 +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>
In-Reply-To: <53001E78.8060706@verizon.net>
X-IsSubscribed: yes

On 16/02/2014 03:12, Gerry Reno wrote:
> I have a Windows MSI installer that first loads Cygwin and then has a deferred copy of some files into /usr/local/bin
> and /usr/local/etc.
>
> The copies into /usr/local/bin succeed fine.
>
> The copies into /usr/local/etc always get Access denied.
>
> I've tried swapping them and same behavior.  The files that would copy into /usr/local/bin now would not copy into
> /usr/local/etc.
>
> I'm seeing this behavior on Windows 7 and Windows 2008R2 w/UAC.
>
> The installer prompts the user for elevated privileges to deal with UAC.
>
> Is there some underlying difference in the way that /usr/local/bin and /usr/local/etc are configured in Cygwin?


it should be no difference.
However you can check the Windows ACL with

$ cd /usr/local

/usr/local
$ getfacl bin
# file: bin
# owner: marco
# group: Administrators
user::rwx
group::r-x
mask:rwx
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

$ getfacl etc
# file: etc
# owner: marco
# group: Administrators
user::rwx
group::r-x
mask:rwx
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

however, I will not be surprised if setup run by a MSI have additional
limitation.

Can you install the same "package" by setup alone to compare ?


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