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 DE9623858C3A for ; Mon, 11 Nov 2024 23:35:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE9623858C3A 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 DE9623858C3A 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=1731368140; cv=fail; b=cFc6e5k9TpBGkFmWW92fgwvzAWfPcv1yG2B+VQ+fE4M0dZ0lxfWJF6CBZhbpCCnPiFqERWBuYLd16kj+ttRdszEBdtKEvW1MTPryepc0lodVoImAdRQqBzKy3hjxy3F0V/qmi6cjb6tdqWHiOMoToN7A9WHSIFqb96wm71wANJw= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731368140; c=relaxed/simple; bh=1I3YPy8eh27uw83oYveBs57EVYGEe+bmoeuLDmDNHp0=; h=DKIM-Signature:Date:To:Subject:Message-Id:Mime-Version:From; b=FjTJ+pjvxkoPaK+tMG9CzAunSLujPHLn8O2CJIui/oUj9IsJl5d4OIFw2Pu2I31KmLg9ZTWzOP+RfjXt8cCyXwOyF52tkm5qLHUgcoQ2/+xu666fejIGAFPoi0bBpGGeVlPYqrt5FCcqGu/hV+Krg2B49t8ksPljCWXEU6dyfn4= ARC-Authentication-Results: i=2; server2.sourceware.org Received: by offsite.cs.fiu.edu (Postfix, from userid 0) id 6BB6C1617F8; 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 7A4341616F4 for ; Mon, 11 Nov 2024 08:01:19 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6B40D3858C56 for ; Mon, 11 Nov 2024 13:01:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B40D3858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1731330073; bh=JJU9epC69zrofI2oS0Bbb7aSjMKhOYgdtE2OzRVGWOc=; 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=rC70ypYDP0//C9fdegEjNBZ5mD7pBfrHgXIInTsDT5P2JQGSmh70adWS5RotUBNyc v+7PD5uLXvHWJs8PdDwsj8GsnHubUNQ8K+0sNHLUr5tI78rN2ZAbj63FYkLJQDMyKe tKTK55lgH+3z9jHf6KXW2CuzF9H3mSfsMbMXQvtU= Received: from mta-snd-e03.mail.nifty.com (mta-snd-e03.mail.nifty.com [106.153.227.115]) by sourceware.org (Postfix) with ESMTPS id 130FF3858D28 for ; Mon, 11 Nov 2024 13:00:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 130FF3858D28 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 130FF3858D28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731330037; cv=none; b=Nn5cYCasI3NmjT/RN3irGag5NT0fyznPnUi3Fxfa5q4hIy6135hdfYlCvlXbOlMCz/EUL9MU1s4mJJSJrMeYgmq8rhlCpfnMLWASIDgHWbVPlO1ZRz2nGpF4GSTK2Rd4MWLomvV/2Zwf+PL7Ci/9c83dqbLFLpTV950IfyNHYUQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731330037; c=relaxed/simple; bh=9NYCKznXCi71FGpzT26gb2A9fquFUC72WbPkDyCbkBI=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=xSlfuxP37WS9MaxTf2nLmXYRcP+fDJ0Jui9eygwl9V9tcEJ5sUrBpnPUbhMLAT+e5008GA775r8H18CucO2bajDMDhpfYSID0kfeUNA+h6jdBekk854LrfKCym+qDG/cj8i0Tl69781enUg9ApsxKcJHnSvRQRnYxkVdGQ65bps= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from HP-Z230 by mta-snd-e03.mail.nifty.com with ESMTP id <20241111130030908.QCJW.51700.HP-Z230@nifty.com> for ; Mon, 11 Nov 2024 22:00:30 +0900 Date: Mon, 11 Nov 2024 22:00:30 +0900 To: cygwin@cygwin.com Subject: Re: SMBFS mount's file cannot be made executable Message-ID: <20241111220030.f872264d5c9186e997213513@nifty.ne.jp> In-Reply-To: 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~esj=cs.fiu.edu@cygwin.com Sender: "Cygwin" X-Keywords: X-UID: 36 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: <20241111130030.DV2tlOnkNz76tRHDZ0HvN8Rsk6OtfrRd8VrPg8HafpE@z> On Mon, 11 Nov 2024 12:59:41 +0100 Corinna Vinschen wrote: > On Nov 11 20:19, Takashi Yano via Cygwin 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) > > On Samba S-1-5-21-479325430-3041864944-504445739-1000 > On Windows S-1-5-21-2089672436-4097686843-2104605006-1001 > > Isn't the user mapping off? > > It's also not clear where your Windows ACL comes from. When I check the > permissions on typical Windows folders, Authenticated Users doesn't even > show up. On my machine, C:\Users\yano>mkdir \test_folder C:\Users\yano>icacls \test_folder \test_folder BUILTIN\Administrators:(I)(OI)(CI)(F) NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F) BUILTIN\Users:(I)(OI)(CI)(RX) NT AUTHORITY\Authenticated Users:(I)(M) NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M) C:\Users\yano>mkdir test_folder C:\Users\yano>icacls test_folder test_folder NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F) BUILTIN\Administrators:(I)(OI)(CI)(F) HP-Z230\yano:(I)(OI)(CI)(F) HP-Z230\Administrator:(I)(OI)(CI)(F) I have no idea why the \test_folder is different from \Users\yano\test_folder. -- 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