This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [TESTERS needed] New POSIX permission handling
- From: Ismail Donmez <ismail at donmez dot ws>
- To: cygwin at cygwin dot com
- Date: Thu, 16 Apr 2015 09:09:29 -0700 (MST)
- Subject: Re: [TESTERS needed] New POSIX permission handling
- Authentication-results: sourceware.org; auth=none
- 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>
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