X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E60D93850436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1601948484; bh=sc1mk7IksXXRW5IS0y65+lDXQ7OpgnnRGpxV62BGj/s=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=PclgcROT2Q+/+FDTgwm7khlKqWgIYJjMlcOyVcYzgFEsAGmvCPa61OwOG4Lvh0M3K pMMEJLjnGshr0bLdfAP8DzoGMI8g3zukd06lq/crPVBCLc77/MSwLD1hAd2A3ZDFUc BskiA3ZpN1ZUMYEYx7yXyGnMl7PSlpGE/qQ8GbZ4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9E051385782E ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JnviDYtaE95jNrWeBJB56QO0Hyhon6tvQg03doBr+sQ/InVVt/R4BLKpTaI7Cb+VF2vmPydxCA0Wlrl+/kpQgobnxuBXUH1T1f5r+xbXgEFjFNg9yhSYJJU6rRe2Bf98k27borNIx3pdlaaA9YDkUFblfkFyQ8DtuOBPV7DcFjyeBcs5qocNBMwHtILXuSkoBZUGuKfE/y+fZ2JfOUqHSxY9AlWpgrHeqm8aTxOpoVd4y2U0EEELdU/V/P8wwXtjSQOJwk/8UmREmSbwLvCqiNUqnu4Xc6TS2gw9T3Z/7RL1xkGkuYvd1BALtF8/Zz+v4m/2eX6PR+MqR19Dhz+iJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gp2wnmGOHWaC5Bo9QFdhMmiVshoC3ecrJywZUHSU1P4=; b=DwuqYsBSoVMHI/xu2ta3WfsBfj0Acmsv8YwB3PBa5RcE4DRzTaTPVzSgcB/56U4AGk6E6S8L2y6oqA97PkKwz64a0dht0svR8sbX0FjagY1SNpCwC25yi6zOK3b3irFi7X5Kzi1fS5auK953DoYgCiaDNZ7OkCs5G0ahlkXdLrYCHw7gEtW+byd03WvDC24ZGwuLt4P2iyrtT16M28Bkje5TkPJqtSTC13YX7ust/ynvCINZI6Hjc/XFXsK1oWnMQS52169rlqb5uqIZw+MHRUFInZR1YFrnyVXM8qeFNnWlzj+a9qWTuIhpi+gJlurMC6HX5hsUYtRX0v/BzGWJfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none Subject: Re: test -r or -x always return false on an NFS mount? To: cygwin AT cygwin DOT com References: <52be2ff1-85fe-87e6-55d1-fb9ab36fe086 AT emmenlauer DOT de> Message-ID: Date: Mon, 5 Oct 2020 21:41:17 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 In-Reply-To: <52be2ff1-85fe-87e6-55d1-fb9ab36fe086@emmenlauer.de> Content-Language: en-US X-Originating-IP: [2604:6000:b407:7f00:48c7:bebb:3651:4c42] X-ClientProxiedBy: BL0PR1501CA0027.namprd15.prod.outlook.com (2603:10b6:207:17::40) To MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2604:6000:b407:7f00:48c7:bebb:3651:4c42] (2604:6000:b407:7f00:48c7:bebb:3651:4c42) by BL0PR1501CA0027.namprd15.prod.outlook.com (2603:10b6:207:17::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.37 via Frontend Transport; Tue, 6 Oct 2020 01:41:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ffbe1587-2c34-4dff-9a8c-08d86998ec13 X-MS-TrafficTypeDiagnostic: MN2PR04MB5616: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q1n9LpgwRXGKYiOW5CCABjKd068I/wrZwfANyary9hmhqNKEi0Ny9ilNZDu5Pnfwt7CWqAQcdOV2xLYGiUzxllJOgrAo/FDLkDOL5JD08cQqR6fomDVQeqsOKl3YSrTXKkJH6BmThwCdbxFkwscYeL95g0beb56OV6UEQelt+/cG6RWtzpeo78UrMyM5T20utPygI1/BoiF4ylhoGtTjgwJu8gP7w/HpaXW3vAyINgnOIRks7u8CDtDgm1UPyz4un2PpeW2vLp1RHaR3wlgq0lbJ2cztz2xeAhr5ma4ZgIJKMsPrqWKdACPnDXMbuppvv+H1W87xFQ5/E0Q2QBBrKiUnR4F0JCOz+h8M35aM1QEE22I5gtznE6dTf0jawlSeW7omCF65cUK+UQsYDeme+tyyxA4jSyKa4Xt/UnnfO/12iAx+eYupYuXAnggDO8bxXkGuZrNKQbS1c61M4eUgd/WhH8LEhZiCt/fXnfBUppI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(346002)(366004)(39860400002)(396003)(83080400001)(786003)(316002)(2616005)(31696002)(5660300002)(36756003)(75432002)(66946007)(53546011)(6486002)(52116002)(66476007)(66556008)(86362001)(478600001)(16526019)(966005)(186003)(6916009)(45080400002)(8676002)(8936002)(31686004)(83380400001)(2906002)(43740500002)(460985005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: wOgRCgRPcBVRZsPNL4cbovlbm3tC6XkIM/MtY7Dt9+1j4e/+MTIEXvmk0GR7NhzlcZBuo+mUHeafHi+EDzcI9joT+1JHkX+nFt3WQYx6oPNq4ccU88th8IG+IXgA6DAuQ7dWB4f/mCp69mVzLd0AtSSgWDdF2wl1yAMYS0UrIVhY6nO5dAxCu0AiOS0WlloI3o6fui0O2+D/Au2jAZqFoHhyHKDtq3VxaSL4zu9HDGISDyRzqvsOFBPDTI/kBFA8IBuoaOTq3givcoQ/nb2F9FFC2kB8Y9rtXUiHetdMQKxenWIlofmG0UiTVvd2uUsogMGp4XjECnJgbtvUbBJI/22TUERcikkmxVYKFvfAMWrgYvh0hu5EBtIvuTRthWQvvbZIO5cyoOvRrE6rTNcyZ14zy55i06sz6QJKLGLR9hzG8NTRff/mEN43ZFprtvaNgz3fgi1hdt26EO1Ug4lZ7PauatjUJMltKc+0pY5JOX6br8cAicpTdFJSxsDg7NLPi7HQsQCI1wgPoAJc4KErqGsi/v1R3Ox+304cHWuDIftLWheFNQs8rWirLYyr1ZTE3qBlyb1fRRM8jfy+jBMTd9t+CC2xv04BAeLrBUw5BpGoMKNTmhe7Tel/xO6b+cgSBfQfUzPmt51WxsGpor0LZBYcFn65W+It8ggsRVd6tccKFWKOSNPXWwuo6w541cp8c7iSqdK3R8OWD03uw5b0Cw== X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: ffbe1587-2c34-4dff-9a8c-08d86998ec13 X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2020 01:41:19.1917 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6OFxjv9VgZ7hYceXQ9k0vA7ZwFFbUQy7zYHsta/nMMNgpXTQ2CRdhZV2QS+OutOhDgfERQd6s8QozdxwsRZTRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5616 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Ken Brown via Cygwin Reply-To: Ken Brown Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 10/1/2020 6:22 AM, Mario Emmenlauer wrote: > > On 22.09.20 22:14, Mario Emmenlauer wrote: >> But since today I met a problem: I mounted a Linux NFSv3 share using >> the Windows 10 shipped NFS client. The user and group ID are mapped >> via registry settings AnonymousUid and AnonymousGid in the entry >> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default >> >> Everything seems to work quite well, and in `ls -la` I can see the >> file permissions and user and group entries. But when using `test` >> to check for read (`test -r`) or execute permissions (`test -x`), it >> always returns false, even for readable files. `ls` on the other hand >> shows the permissions correctly, and `cat`ing the files works without >> problems. >> >> I've read https://cygwin.com/cygwin-ug-net/using-filemodes.html >> about the Cygwin file permissions for NFS, and also the NFS account >> mapping at https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nfs, >> but as far as I can see, they are both unrelated. Google turned up no >> useful hits for keywords "cygwin" "test" and "nfs", so I'm a bit at the >> end of my wit. >> >> Is this a known issue, and/or are there any workarounds? I'm currently >> using `test -e` in place of read or execute checks, but it basically >> breaks all my build scripts. > > Is there something I should do about this issue? I could look into the > source code of `test` on Cygwin if someone can point me to the correct > repository? Or should I just file an issue? There is no special source code of 'test' on Cygwin. Assuming you're working in a bash shell, 'test' is a shell builtin, so the source code is part of the source code of bash. (I don't know if other shells have a 'test' builtin.) Alternatively, if you're running /usr/bin/test.exe, then it's part of the coreutils package. Either way, looking at that source code is not likely to help, except to see what system call it uses to test the access. > The issue is not a super high priority for me personally, but I guess > its quite a limitation of Cygwin if essential scripting functionality > is misbehaving on NFS. I don't know anything about NFS, but I doubt if this is a general problem with NFS on Cygwin. There's quite a bit of Cygwin code devoted to NFS shares, and the question is why this isn't working for yours. Corinna is probably the only person who knows what questions to ask you to get to the bottom of this, and she's currently unavailable. When she returns, maybe she can help. Ken -- 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