From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19958 invoked by alias); 9 Dec 2015 10:46:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19944 invoked by uid 89); 9 Dec 2015 10:46:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from ipbcc02fe8.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.47.232) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Dec 2015 10:46:52 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 6DE51A80605; Wed, 9 Dec 2015 11:46:50 +0100 (CET) Date: Wed, 09 Dec 2015 10:46:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: FindFirstFile fails for some network directories Message-ID: <20151209104650.GA2747@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-12/txt/msg00116.txt.bz2 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1555 On Dec 9 11:43, Orgad Shaneh wrote: > On Wed, Aug 19, 2015 at 8:28 AM, Orgad Shaneh wrote: > > > > On Wed, Aug 19, 2015 at 8:46 AM, Orgad Shaneh wrote: > > > Working capture: https://gist.github.com/orgads/d2681881668afb9cb08f > > > Failing capture: https://gist.github.com/orgads/4f0ea2b26cfd64f4353d > > > > I just found another SMB1 linux server, which does work[1]. > > > > It first has a "NT Create AndX" request for path \, which succeeds. > > Then it issues Trans2 FIND_FIRST2 request for the real path (\a). > > > > This issue might be related to the Archive bit which is set on aclnas01. > > > > - Orgad > > > > [1] https://gist.github.com/orgads/e76a00c2cc0fc8a43d95 >=20 > Hi, >=20 > After investigation, I found that the root cause for this problem is > set_cygwin_privileges, which sets SE_RESTORE_PRIVILEGE and > SE_BACKUP_PRIVILEGE for the process during initialization. >=20 > Commenting out these 2 lines solves the problem for me. >=20 > Can you tell why are they needed at all? There is a comment there: >=20 > Allow to access all files, independent of their ACL settings. >=20 > What does it mean? These are the user privileges required to allow an admin user accessing files which don't give him permissions to do so, just like a POSIX root user. The usual behaviour of a filesystem should be to refuse the setting without to fail. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWaAaaAAoJEPU2Bp2uRE+gDXwQAJZs5xtwcWd8pbyZvcGvMrWW 2laY/vUp7SQF168anET3QlTTXTTkMZXZfO15y4iB3MI5zHKZiJMRk9a6DqU28xra t6z1rcVZVhqjhwUIvqdtBGNWAVqBRREn7FA+9lHSjGt74/x7C2MGQG+w6RjjzkRZ EUXZtgw1qQ58pf8ooVXIroN3vD44gINkwaT8xBpKMwyoLo5Z7bTReigjiq/Ht6+z N5pe4hLsg8CV4n6HkSPe9Xa5E9HNwO4QO4myYbG+MF2ACW0zEJx97b+E0FSa4Pdc pRQktRgF8NZ+mqaqJMUZbM5VtGcIWt3Fuimxx3A6jrNYvJgidYxQAiV1JFaJbY7g FIa1vc6ia5m5AXWa+pviyBwfj7iJ/AsgBspK/vYGU6b6U6zLk34gdM52qR8iopos 112JTHyG/zHdkeZ1dCTk2xECjScp3s6ImHueb3GKU0pqHHfLA9JMdG+zDTtZKJGm n3kFs0DjxktKF/d/NePmdwuUoR/s3ce8iIBjBk3MLeAudJLFMUihZL7ivpMGdwWj QncqW3vrq0Bdt5uvH0bh4bR8BUiYoDp6s8GXRD4gAspzV06AycCJdEyDMSYo4i2K 20czR3Fl8SU/qArAGoci/tGuh7ZnpOmL+gWJjJExnT1Jl+JwIqsgMKSgXzajQYJn eC2FDXyG0nVpGCPRUoSD =62jn -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--