DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53DFdkD3610120 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53DFdkD3610120 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=nbjM/hgo X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D76C3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1744558784; bh=JxO1mRfkBQ52jVZcQSG0mvvZhBy9cD1aUqZm/AvPMVo=; h=Date:Subject:To:References:Cc:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=nbjM/hgoBwvZro2/Q81kShL+Q0BQdcFIowIzTwGZIy0mQbMsbGlfC0w4d9jXrI/5h UGYyYsccL0c7i4yi1YvPJZf67tfasMFYEVrGk1Ij5VtBze4WlL/L9w1JzBujQPE6aG NjXp5GkNWDvhpwA+CIuNREQPN8eGi4SK2PX3DG1I= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BC7E33858D33 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BC7E33858D33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744558759; cv=none; b=OvTuQo2HzSWmw2GYEAj7ARmBZRzN8AjP0HiKI127/8g188QZxROrY/skKBf+klR1pwEN/IaZRPgJiGMnh0Y9+xf19Abhv89/gOH/iKcVw71ZlSbmwH7yAidcefzTjVoG0ve+OBO+N+lCCiBzcl36ownXKR0i0NR/lbVDMdZJDwc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744558759; c=relaxed/simple; bh=6xsDPAMyE0QiO7g+rxSrKJiaaeJFrYGLhvu1p7fPukk=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=SqogbDxdFeqP05Vj8crsKBbZpWEaCSXCJkoM7Rxe6hc70G7/8sIChyRFK2bWszSEmPHZ8NhGsnTU1wDF376gSVRVrs1p9k+6jmnnrfgEDUYgpEkxoGj3PRsULjGgjvBENOy2DFT/F2/zxo9xvOpkPIHIffFalzxCeTMlGJKeP58= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC7E33858D33 X-SNCR-Rigid: 67D89D1C032EA42F X-Originating-IP: [86.140.112.112] X-OWM-Source-IP: 86.140.112.112 X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvudektddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhepkfffgggfuffvfhfhvegjtgfgsehtkeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeetgeetgfehiedukeejleekgeffjedvgedvudffvdeftddvkeehtdffveefgeekheenucfkphepkeeirddugedtrdduuddvrdduuddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudegtddrudduvddrudduvddpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrvghvkffrpehhohhsthekiedqudegtddqudduvddqudduvddrrhgrnhhgvgekiedqudegtddrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepsghtphhrughrghhotddtiedpnhgspghrtghpthhtohepvddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohepghhglhefvdelsehg mhgrihhlrdgtohhm X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-VadeSecure-score: verdict=clean score=0/300, class=clean Message-ID: Date: Sun, 13 Apr 2025 16:39:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: mksetupini aborts if run by a normal user To: ggl329 References: <878a6dfe-e395-456d-9893-820d8679c999 AT gmail DOT com> Content-Language: en-US Cc: cygwin AT cygwin DOT com In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jon Turney via Cygwin Reply-To: Jon Turney Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 53DFdkD3610120 On 13/04/2025 08:02, Brian Inglis via Cygwin wrote: > On 2025-04-12 08:59, ggl329 via Cygwin wrote: >> Hi Jon, >> >> Thanks for updating calm package. >> >> Usually, I work as a normal user. (i.e., not as root or an administrator) >> In this case, mksetupini aborts with a permission error. >> It is because Python library files do not have permission to normal >> users. Oh! That's not right. Thanks very much for reporting this. >> Could you modify the file permissions so that they are accessible to >> non- privileged users? I've rebuilt the package as calm-20250329-2, which I think has the correct permissions. >> $ cygcheck -dc | grep calm >> calm                                    20250329-1 >> >> $ mksetupini >> Traceback (most recent call last): >>    File "/usr/bin/mksetupini", line 5, in >>      from calm.mksetupini import main >>    File "", line 1007, in _find_and_load >>    File "", line 986, in >> _find_and_load_unlocked >>    File "", line 680, in _load_unlocked >>    File "", line 846, in >> exec_module >>    File "", line 982, in get_code >>    File "", line 1039, in get_data >> PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.9/ >> site- packages/calm/__init__.py' >> >> $ ls -ld /usr/lib/python3.9/site-packages/calm >> drwxrwx--- 1 root Administrators 0 Apr 12 23:23 /usr/lib/python3.9/ >> site- packages/calm >> >> $ ls -ld /usr/share/doc/calm >> drwxrwx--- 1 root Administrators 0 Apr 12 23:23 /usr/share/doc/calm > > Previously installed python packages all have a+r files and a+rx dirs, > with .py one or the other, including the previous calm tars, whereas the > latest release file perms in the tar are not all consistent with each > other or previous releases, also for the .../calm...dist-info dir and > files! Yeah, this seems to be due to an interaction between a change in the way permissions are mapped onto ACLs in 3.6.0, and the slightly weird inheritable ACL setup in the VM used to build packages. I don't think there's anything python specific in this, so I suspect this might have effected a few other packages which were built using 3.6.0 (which isn't the case currently due to some stability concerns). -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple