From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mta-snd-w01.mail.nifty.com (mta-snd-w01.mail.nifty.com [106.153.227.33]) by sourceware.org (Postfix) with ESMTPS id DA4993858D39 for ; Mon, 11 Nov 2024 11:51:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA4993858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nifty.ne.jp ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DA4993858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=106.153.227.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731325890; cv=none; b=vKEBUIKBfd/Tkk7VoO1+0xovTaShg0xyV6oA38qMQTjJNkfh9hOm8yhe6lsoots1Sy67S3QU/etTpcj7UR/HZF5iEG3TzGQbb5DvJoqf9pVJP+40CeugN/sVb5FqyZaGqBkA42UO8jVmcJBp4QMDYI00IF9o+tfqtsERn/IkOzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731325890; c=relaxed/simple; bh=inis0yYIORmcJurDc22Ui2luUfhcKoXJ/pKIiSJdVJQ=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=YwCULgkmgDL2zqo3NAWeRmOKi/3TNVE2l1xLmSlZYWHDIQHvTk1A4OvEMdXOJnQmXpcLUUVIyTvrEnWSXUSc7JbrJ5AUeXz8XPsQse5m6Ql59LQDvlq7JCJjgYuGLZioh+iVcKwvL/wnBNECFr6JXlsF7tkMj61w5ho/IIjSl+E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from HP-Z230 by mta-snd-w01.mail.nifty.com with ESMTP id <20241111115125091.WFFF.69727.HP-Z230@nifty.com> for ; Mon, 11 Nov 2024 20:51:25 +0900 Date: Mon, 11 Nov 2024 20:51:24 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: SMBFS mount's file cannot be made executable Message-Id: <20241111205124.d141ee6930125a827195365c@nifty.ne.jp> In-Reply-To: <20241111201928.811a2f8f09142b7aa8fe9bdc@nifty.ne.jp> References: <20241108205109.55f99e2d172b9fc87e92ae67@nifty.ne.jp> <20241111193152.c3a81044a03ecf2093185166@nifty.ne.jp> <20241111201928.811a2f8f09142b7aa8fe9bdc@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=default-1th84yt82rvi; t=1731325885; bh=7yzfop9dhgLjY2PSKT6nvk2ywfm6zteVny62zL816Ps=; h=Date:From:To:Subject:In-Reply-To:References; b=jY9rtwoAj+dPB7sd8H66PJ9SyGBXpFIFqSJ78OTBpzI7V0qzQGQIyVCCO101Hj1SheI4IRFe vvdjoLoIekRZHq5saRx2CumsEKoG2lk9vxN1D3M/SvkSfijM5jM5SuP6GqEMfNaWFcuw6q/+IX 9yf3wQ9LOyn9ptioAJSzSK8qabFssMt6YU+Y4FNF1M/qWNap+0VHXttUZpxjDzRSXgI6AmyxnT QH690iJ/aIPOVAFV/ul7KaIM+yIjbyD4DOvmaF/y2bYHlzoWEBi18WtQAklXw1BouMBIDJ5sjx qmAbPoxOdARcoxgzOayJ0z/dqNepmgBzqFlt8/98lxXjfrHA== X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_ASCII_DIVIDERS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, 11 Nov 2024 20:19:28 +0900 Takashi Yano wrote: > On Mon, 11 Nov 2024 11:56:13 +0100 > Corinna Vinschen wrote: > > > On Nov 11 19:31, Takashi Yano via Cygwin wrote: > > > On Fri, 8 Nov 2024 14:11:40 +0100 > > > Corinna Vinschen wrote: > > > > If the server is a Samba share, check if `force unknown acl user = yes' > > > > and for the share itself, check that > > > > > > > > read only = No > > > > vfs objects = acl_xattr > > > ^^^^^^^^^^^^^^^^^^^^^^^ > > > Thanks! This makes things better. > > > At least x permissions are set to executable compiled by gcc. > > > > > > However, something is still wrong in my environment.... > > > Others permission seems to be reffered in some cases. > > > > I don't understand. Please run icacls for a just created file on your > > Samba share (without the below patch) as well as Windows' `whoami /all'. > > $ touch samba_test_file.txt > $ icacls samba_test_file.txt > samba_test_file.txt S-1-5-21-479325430-3041864944-504445739-1000:(R,W,D,WDAC,WO) > S-1-5-21-479325430-3041864944-504445739-513:(R) > Everyone:(R) > > This seems reasonable to me. > > For Windows 11 share, the result is > samba_test_file.txt NULL SID:(DENY)(Rc,S,WEA,X,DC) > S-1-5-21-2089672436-4097686843-2104605006-1001:(R,W,D,WDAC,WO) > S-1-5-21-2089672436-4097686843-2104605006-513:(DENY)(S,X) > NT AUTHORITY\Authenticated Users:(DENY)(S,X) > NT AUTHORITY\SYSTEM:(DENY)(S,X) > BUILTIN\Administrators:(DENY)(S,X) > BUILTIN\Users:(DENY)(S,X) > S-1-5-21-2089672436-4097686843-2104605006-513:(RX) > NT AUTHORITY\Authenticated Users:(RX,W) > NT AUTHORITY\SYSTEM:(RX,W) > BUILTIN\Administrators:(RX,W) > BUILTIN\Users:(RX) > Everyone:(R) Sorry, I forgot to add result of 'whoami /all'. $ /cygdrive/c/windows/system32/whoami /all USER INFORMATION ---------------- User Name SID ============ ============================================== hp-z230\yano S-1-5-21-1515853178-1880514851-1804962447-1001 GROUP INFORMATION ----------------- Group Name Type SID Attributes ====================================== ================ ============================================== ================================================== Everyone Well-known group S-1-1-0 Mandatory group, Enabled by default, Enabled group HP-Z230\docker-users Alias S-1-5-21-1515853178-1880514851-1804962447-1073 Mandatory group, Enabled by default, Enabled group BUILTIN\Performance Log Users Alias S-1-5-32-559 Mandatory group, Enabled by default, Enabled group BUILTIN\Remote Desktop Users Alias S-1-5-32-555 Mandatory group, Enabled by default, Enabled group BUILTIN\Users Alias S-1-5-32-545 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4 Mandatory group, Enabled by default, Enabled group CONSOLE LOGON Well-known group S-1-2-1 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\ローカル アカウント Well-known group S-1-5-113 Mandatory group, Enabled by default, Enabled group LOCAL Well-known group S-1-2-0 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10 Mandatory group, Enabled by default, Enabled group Mandatory Label\Medium Mandatory Level Label S-1-16-8192 PRIVILEGES INFORMATION ---------------------- Privilege Name Description State ============================= ==================================== ======== SeShutdownPrivilege Shut down the system Disabled SeChangeNotifyPrivilege Bypass traverse checking Enabled SeUndockPrivilege Remove computer from docking station Disabled SeIncreaseWorkingSetPrivilege Increase a process working set Disabled SeTimeZonePrivilege Change the time zone Disabled -- Takashi Yano From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from offsite.cs.fiu.edu (offsite.cs.fiu.edu [131.94.68.228]) by sourceware.org (Postfix) with ESMTP id 168663858C66 for ; Mon, 11 Nov 2024 23:35:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 168663858C66 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 168663858C66 Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=131.94.68.228 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731368127; cv=fail; b=k+00VC5sn3oWRfH8kp6X62jz64ONE+AS2y8oMiRgXP+Q/UNb1y6ymGM5EUe56mCUz3TmiqUxxv/63XsD0bjKnlX+s7v7mxZUODhoRBx79zPjVcnUmeopKclKGJwXlw86Nz8oqXlBX9ScMEDF+02HTsIeL4lXxXiasZ8y4bbtG5s= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731368127; c=relaxed/simple; bh=G4ql23unKlKSnMIyxL8Zk19pyGBqzFe+p1WwvETHjZw=; h=DKIM-Signature:Date:To:Subject:Message-Id:Mime-Version:From; b=PyATMBDCu5nsHuA91vu8n1u8ZB9lkATmE0TZkH12OFcSRtcB6+nEgPzpj3Xdjxfp4bft9L40kMHcbLXM7omfHdo3oIWHBqiB97Qto0kOckAvyUQOqFZxrI5GhxmGUs7Vxh8ET/hY4IwYtdt18khLsNeQSY8EYu6RPez7Jq9t+6g= ARC-Authentication-Results: i=2; server2.sourceware.org Received: by offsite.cs.fiu.edu (Postfix, from userid 0) id 2CC171617F1; Mon, 11 Nov 2024 18:35:16 -0500 (EST) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) by offsite.cs.fiu.edu (Postfix) with ESMTP id 2172F1616FC for ; Mon, 11 Nov 2024 06:52:14 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 375773858C48 for ; Mon, 11 Nov 2024 11:52:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 375773858C48 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1731325930; bh=Gq3/hoci1w8PtXuseUb3IfwQ6WKsGwjs6T3EQN0+b7s=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=jNQ6RjBLBi5BxJwn98JjIPhAzjGcRFyOPmDV5xlBwgmIOAwwiobGGtgexVnJq0RT7 L8GfFWgBG+98fKxrcSRFnYxEu4NIs9hadyAd2ezFyypbFG0hDUjTksmc/mBythHBkq X5uS+efuudyIp3MceU0f0nerTslXqy0BYd9KjrTs= Received: from mta-snd-w01.mail.nifty.com (mta-snd-w01.mail.nifty.com [106.153.227.33]) by sourceware.org (Postfix) with ESMTPS id DA4993858D39 for ; Mon, 11 Nov 2024 11:51:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA4993858D39 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DA4993858D39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731325890; cv=none; b=vKEBUIKBfd/Tkk7VoO1+0xovTaShg0xyV6oA38qMQTjJNkfh9hOm8yhe6lsoots1Sy67S3QU/etTpcj7UR/HZF5iEG3TzGQbb5DvJoqf9pVJP+40CeugN/sVb5FqyZaGqBkA42UO8jVmcJBp4QMDYI00IF9o+tfqtsERn/IkOzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731325890; c=relaxed/simple; bh=inis0yYIORmcJurDc22Ui2luUfhcKoXJ/pKIiSJdVJQ=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=YwCULgkmgDL2zqo3NAWeRmOKi/3TNVE2l1xLmSlZYWHDIQHvTk1A4OvEMdXOJnQmXpcLUUVIyTvrEnWSXUSc7JbrJ5AUeXz8XPsQse5m6Ql59LQDvlq7JCJjgYuGLZioh+iVcKwvL/wnBNECFr6JXlsF7tkMj61w5ho/IIjSl+E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from HP-Z230 by mta-snd-w01.mail.nifty.com with ESMTP id <20241111115125091.WFFF.69727.HP-Z230@nifty.com> for ; Mon, 11 Nov 2024 20:51:25 +0900 Date: Mon, 11 Nov 2024 20:51:24 +0900 To: cygwin@cygwin.com Subject: Re: SMBFS mount's file cannot be made executable Message-ID: <20241111205124.d141ee6930125a827195365c@nifty.ne.jp> In-Reply-To: <20241111201928.811a2f8f09142b7aa8fe9bdc@nifty.ne.jp> References: <20241108205109.55f99e2d172b9fc87e92ae67@nifty.ne.jp> <20241111193152.c3a81044a03ecf2093185166@nifty.ne.jp> <20241111201928.811a2f8f09142b7aa8fe9bdc@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-BeenThere: cygwin@cygwin.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: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~esj=cs.fiu.edu@cygwin.com Sender: "Cygwin" X-Keywords: X-UID: 27 X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_ASCII_DIVIDERS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_FAIL,SPF_HELO_NONE,TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Message-ID: <20241111115124.Re-rJWDUEfEL5qFvmMnPc1cjn-foEZPuMhs0_NaMzjQ@z> On Mon, 11 Nov 2024 20:19:28 +0900 Takashi Yano wrote: > On Mon, 11 Nov 2024 11:56:13 +0100 > Corinna Vinschen wrote: > > > On Nov 11 19:31, Takashi Yano via Cygwin wrote: > > > On Fri, 8 Nov 2024 14:11:40 +0100 > > > Corinna Vinschen wrote: > > > > If the server is a Samba share, check if `force unknown acl user = yes' > > > > and for the share itself, check that > > > > > > > > read only = No > > > > vfs objects = acl_xattr > > > ^^^^^^^^^^^^^^^^^^^^^^^ > > > Thanks! This makes things better. > > > At least x permissions are set to executable compiled by gcc. > > > > > > However, something is still wrong in my environment.... > > > Others permission seems to be reffered in some cases. > > > > I don't understand. Please run icacls for a just created file on your > > Samba share (without the below patch) as well as Windows' `whoami /all'. > > $ touch samba_test_file.txt > $ icacls samba_test_file.txt > samba_test_file.txt S-1-5-21-479325430-3041864944-504445739-1000:(R,W,D,WDAC,WO) > S-1-5-21-479325430-3041864944-504445739-513:(R) > Everyone:(R) > > This seems reasonable to me. > > For Windows 11 share, the result is > samba_test_file.txt NULL SID:(DENY)(Rc,S,WEA,X,DC) > S-1-5-21-2089672436-4097686843-2104605006-1001:(R,W,D,WDAC,WO) > S-1-5-21-2089672436-4097686843-2104605006-513:(DENY)(S,X) > NT AUTHORITY\Authenticated Users:(DENY)(S,X) > NT AUTHORITY\SYSTEM:(DENY)(S,X) > BUILTIN\Administrators:(DENY)(S,X) > BUILTIN\Users:(DENY)(S,X) > S-1-5-21-2089672436-4097686843-2104605006-513:(RX) > NT AUTHORITY\Authenticated Users:(RX,W) > NT AUTHORITY\SYSTEM:(RX,W) > BUILTIN\Administrators:(RX,W) > BUILTIN\Users:(RX) > Everyone:(R) Sorry, I forgot to add result of 'whoami /all'. $ /cygdrive/c/windows/system32/whoami /all USER INFORMATION ---------------- User Name SID ============ ============================================== hp-z230\yano S-1-5-21-1515853178-1880514851-1804962447-1001 GROUP INFORMATION ----------------- Group Name Type SID Attributes ====================================== ================ ============================================== ================================================== Everyone Well-known group S-1-1-0 Mandatory group, Enabled by default, Enabled group HP-Z230\docker-users Alias S-1-5-21-1515853178-1880514851-1804962447-1073 Mandatory group, Enabled by default, Enabled group BUILTIN\Performance Log Users Alias S-1-5-32-559 Mandatory group, Enabled by default, Enabled group BUILTIN\Remote Desktop Users Alias S-1-5-32-555 Mandatory group, Enabled by default, Enabled group BUILTIN\Users Alias S-1-5-32-545 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4 Mandatory group, Enabled by default, Enabled group CONSOLE LOGON Well-known group S-1-2-1 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\ローカル アカウント Well-known group S-1-5-113 Mandatory group, Enabled by default, Enabled group LOCAL Well-known group S-1-2-0 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10 Mandatory group, Enabled by default, Enabled group Mandatory Label\Medium Mandatory Level Label S-1-16-8192 PRIVILEGES INFORMATION ---------------------- Privilege Name Description State ============================= ==================================== ======== SeShutdownPrivilege Shut down the system Disabled SeChangeNotifyPrivilege Bypass traverse checking Enabled SeUndockPrivilege Remove computer from docking station Disabled SeIncreaseWorkingSetPrivilege Increase a process working set Disabled SeTimeZonePrivilege Change the time zone Disabled -- Takashi Yano -- 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