delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/16/12:09:50

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:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; q=
dns; s=default; b=pyTlQv342ZM/m/5XE8Wnh0gr9DMl4pVRaeU+Y+UB9W9SjZ
5jodVulVO3QL2hHdoUe27rmgG9jyAVka/lbB6T9henXI2h9XHjQtnZaUE0oG1BHd
PKbLJE8C4IFvlvXrekMl+8HEZoNxuLIPe1qnLwMadbGbw/yCa9FY5xrkWy7cI=
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:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; s=
default; bh=NyKXh7aEk06b4c7WXG/C6hqqDa0=; b=GEwzkGoXXeaP/4+0hm4J
p4CHLqVL+QFTV7aVvMdNxbT2Mu2r1xvU60JB54jpwWSRKXSL5s3EqVwh4jcSfrNx
cOKH7b52YiqDlUiamXgoc+V31UWRgj8G4xSV0xa1AqrR4DP6gP230OQj3bie8VGD
M0iTmixJR8MbSWFUzBqFv0g=
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=3.0 required=5.0 tests=AWL,BAYES_50,SPF_SOFTFAIL,URI_HEX autolearn=no version=3.3.2
X-HELO: mwork.nabble.com
Date: Thu, 16 Apr 2015 09:09:29 -0700 (MST)
From: Ismail Donmez <ismail AT donmez DOT ws>
To: cygwin AT cygwin DOT com
Message-ID: <1429200569630-117621.post@n5.nabble.com>
In-Reply-To: <20150416110304.GA26837@calimero.vinschen.de>
References: <20150410100703 DOT GA4401 AT calimero DOT vinschen DOT de> <1428772308972-117455 DOT post AT n5 DOT nabble DOT com> <20150412083532 DOT GM7343 AT calimero DOT vinschen DOT de> <1428844894032-117479 DOT post AT n5 DOT nabble DOT com> <20150412142521 DOT GR7343 AT calimero DOT vinschen DOT de> <20150415154225 DOT GD7343 AT calimero DOT vinschen DOT de> <1429179605687-117615 DOT post AT n5 DOT nabble DOT com> <20150416110304 DOT GA26837 AT calimero DOT vinschen DOT de>
Subject: Re: [TESTERS needed] New POSIX permission handling
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t3GG9loT025975

Hi,


Corinna Vinschen-2 wrote
> On Apr 16 03:20, Ismail Donmez wrote:
>> Corinna Vinschen-2 wrote
>> > I just applied a patch which is supposed to handle this owner==group
>> > scenario better.
>> > 
>> > In short, Cygwin will try to handle POSIX user and group permissions
>> > separately, even if owner == group.  This is basically a fake as far
>> > as the actual permissions of the account are concerned, but it allows
>> > applications still to chmod to different user and group perms.  It
>> > just *looks* different in the end.
>> > 
>> > The only restriction of this is that the POSIX user permissions are
>> > always changed so that the user perms are >= the group perms in this
>> > situation.  So this:
>> > 
>> >   chmod 460 foo
>> > 
>> > will be internally twisted into
>> > 
>> >   chmod 660 foo
>> > 
>> > 
>> > I uploaded new developer snapshots to https://cygwin.com/snapshots/
>> > and I'm just uploading a 2.0.0-0.5 test release with this change.
>> 
>> I tested the new test release (rm -rfd the cygwin installation and
>> re-installed from scratch just to be sure), my original testcase with
>> quilt
>> and mutt works, BUT now when I run make install inside mutt source it
>> complains that /usr/bin/install cannot change permissions on the
>> destination
>> executables.
> 
> Hmm, ok.  Off the top of my head I don't understand this.
> 
>> can post an easily reproducable error. Because running the same command
>> myself gives no error whatsoever. I'll try to come up with a better
>> report.
> 
> That would be nice.  A good start would be to know what permission mask
> install is trying to set the destination to.  Maybe that sheds some light.

So I am trying to configure and install mutt, and the first error I see is
at the end of configure:

configure: creating ./config.status
chmod: changing permissions of './config.status': Permission denied
configure: error: write failure creating ./config.status

Well, looks like its right:

[~/src/mutt]> chmod +x config.status
chmod: changing permissions of ‘config.status’: Permission denied

[~/src/mutt]> uname -a
CYGWIN_NT-6.3 ux31a 2.0.0(0.287/5/3) 2015-04-15 17:39 x86_64 Cygwin

[~/src/mutt]> getfacl .
# file: .
# owner: ismail
# group: ismail
user::rwx
group::r-x
group:SYSTEM:rwx
group:Administrators:rwx
mask:r-x
other:r-x
default:user::rwx
default:group::r-x
default:group:SYSTEM:rwx
default:group:Administrators:rwx
default:mask:r-x
default:other:r-x

[~/src/mutt]> getfacl config.status
# file: config.status
# owner: ismail
# group: ismail
user::rwx
group::r-x
group:SYSTEM:rwx
group:Administrators:rwx
mask:r-x
other:r-x

Any ideas? :)

Thank you.




--
View this message in context: http://cygwin.1069669.n5.nabble.com/TESTERS-needed-New-POSIX-permission-handling-tp117406p117621.html
Sent from the Cygwin list mailing list archive at Nabble.com.

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