From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25623 invoked by alias); 30 May 2016 10:40:06 -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 24561 invoked by uid 89); 30 May 2016 10:40:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-94.7 required=5.0 tests=AWL,BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=allen, Allen, helpful, newest X-HELO: calimero.vinschen.de Received: from ipbcc0227e.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.34.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 May 2016 10:40:04 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 27108A806CA; Mon, 30 May 2016 12:40:02 +0200 (CEST) Date: Mon, 30 May 2016 16:35:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Permissions Problems Message-ID: <20160530104002.GD6659@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="yLVHuoLXiP9kZBkt" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-SW-Source: 2016-05/txt/msg00404.txt.bz2 --yLVHuoLXiP9kZBkt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2239 On May 16 10:13, Norton Allen wrote: > I have seen problems similar to those reported in "RE: Possible issue with > newest version of git (v 2.8) under Cygwin", but I did not want to hijack > that thread. >=20 > For me, the problems have been elusive. Scripts that used to work would f= ail > as created directories had bad permissions, but I didn't have time to sort > them out. In the last week, I finally had time to read through the > documentation on the ntsec page and try some tests, and of course now I'm > having trouble reproducing the problems. You'd think that was a good thin= g, > right? >=20 > I had been using /etc/passwd from mkpasswd, and based on recommendations > here, I modified nsswitch for passwd: db. This seemed to work fine, and I > decided I was all set. >=20 > Then Windows update rebooted over the weekend, and nothing worked, and > returning to 'files' resolved the problem. >=20 > The exacerbating factor here is that I have a laptop connected to my work > domain, but we use cached windows credentials when we are not on the work > LAN (like at home over the weekend). In this scenario, cygwin was apparen= tly > unable to determine my username, and hence was unable to locate my home > directory. The username is apparently cached successfully if I reboot at > work and then go offline, but not if I reboot offline. >=20 > Does this mean I need to stay with 'passwd: files db' for the foreseeable > future, or is it possible to find the username in this scenario? It's not the username per se, it's the fact that the db-only setting doesn't allow o create valid passwd/group entries for your user. So, yes. In your scenario you should ideally revert back to "files db" and create minimal /etc/passwd and /etc/group files. /etc/passwd may contain only your own user account. /etc/group only the domain groups you're member of. Everything "special" or "local" will be picked up just fine by Cygwin then. If there are also files on your machine owned by some other domain user, it might be helpful to add that account to /etc/passwd, too. HTH, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --yLVHuoLXiP9kZBkt Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXTBiBAAoJEPU2Bp2uRE+gQQ0P/3e+496y0h13JxdVsSRZ+YqT jbSHiRT9aY8yS6gO/+hdyQydIMbgWSsWrQF2A5ocYRqnwzO8Q559rDEQcts0lOMJ IYqK/1KWB4cp2v4WAt8st2HFNjP8XVptKonhEfFthSmJwxhLxA75lvdJ0jAcCk1Z UxSU5Lxkk2uCapMp/mA/f39hV0xFbHXQfpfz2h48n+SR4o8zNLkfUsFsNnkVnCiO QpDf1lWUwJY2QNWjnAbFiRAuKTfOla7hRoBy9qz8rQsIijiIjwls2560wrDHHRHE o7WJ5VkGdLtzSOlnGDqjeFApC0dPyZnTOqv+aoOJxL5VCUaL0yS4dVtLgPv56zpa tYkFputUk6jpYfMbDhoHC0DOGtNG7OVZqah9ZiG2UjuD8bZfYTTgQQkhT++YKfWL L8GMNj4nGSHFOuLPj3OtmNm3KWh//Fy2VKNy80KYmVeLh48qNwPwPZlbmPDQZk9c dcirOMG+D7qIOSXNpfoBJjuRJHzj9Q26sW9OWtGjv2rXIye28nKZ4hkFLcCsJlNZ jnKyWfbFAVH4UTz+yfXV2nWQlAR6bYLReKz/Xpa68R0vFsRu3ikQQIS5iClA9z5o wW0kLP38rTDxWpgatvWLGPv7B+ynn4pCK6jYgAnAkOT2GZQ6gvxZGHjWNPFCMl2W jq6p3AWmkQm1rZnKfSWJ =c+TT -----END PGP SIGNATURE----- --yLVHuoLXiP9kZBkt--