X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=GN/yuTBBPSBRxGwUNGpU0qq99J7gPUlJzuNaCb5LIgNszeFU3sxZG
	sqj+/v7z8NriuvIhNOLQvVWTWxn3sWtPZRQgziRGj2WF9FYn753hlSnis8ekScdk
	czhvGDjYxfaQvRnSNtTqtK69XL6cEF9yaOXChldoi3iQdNyRDTR83E=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=378w6+BJurz9YsxJFDoiim9b9Rw=; b=X7J16rH8gEvQ/SGEqQPpVzhiIAeX
	WQlYLf7mMhe5eJHBU9UwCV2MO0BH/2SJ8BAGHGC17sbX6FK6XjjDZxViN3P5qfGY
	cnHH6fxkRG3PGQ0OSJKH8sj7DrQ91VN6cZrbdSs+lXTVbBqdUUGCd5H4LY8WHvQO
	aIgnmdJLvhd544Y=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 spammy=H*f:sk:096364f, acl
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Achim Gratz <Stromeko@NexGo.DE>
Subject: Re: /bin/rebaselst: cannot create =?utf-8?b?L3Zhci9jYWNoZS9yZWJhc2UvcmViYXNlX2xzdDo=?= Permission denied
Date: Fri, 8 Apr 2016 10:31:10 +0000 (UTC)
Lines: 33
Message-ID: <loom.20160408T120240-961@post.gmane.org>
References: <065b7c7adc9b367aa54d7654d1e2550f@xs4all.nl> <loom.20160408T110800-293@post.gmane.org> <096364f9dabfcf3dcc897f9215839211@xs4all.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Houder <houder <at> xs4all.nl> writes:
> But I am missing some "Unix logic" here:
> 
>   - I modified the permissions of the files (chmod u+x)

What makes you think that these files should be executable?

>   - invoked setup (using -B)
>      - rebaselst is content now, though
>      - it creates the same files '666' !!!!!

They don't need to be executable.  It's all just text, and mode 666 means
read and writable to everyone.  In fact they are later made read-only since
they are written to just once on creation and then moved to .old on the next
invocation.

>   - again, I invoke setup (using -B)
>   - now rebaselst complains ...

It complains about not being able to write to a file it creates with
writable permission.  I can't see how that can happen nor how it's the fault
of rebaselst if it does.  It seems that maybe setup can't write the ACL
changes that go along with the chmod, which would indicate that it's not
invoked as the same user that owns the directory (which, given the ACL
you've shown is the only one with that right).

> As the files were created with the wrong permissions, I am not 
> surprised.

For the wrong reason, I suppose.

Regards,
Achim.


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

